Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue3 project by vite. import kafka from 'kafka-node' #1481

Open
BlackHandguy opened this issue Apr 29, 2024 · 1 comment
Open

vue3 project by vite. import kafka from 'kafka-node' #1481

BlackHandguy opened this issue Apr 29, 2024 · 1 comment

Comments

@BlackHandguy
Copy link

kafka-node.js?v=73be29b7:1432 Uncaught TypeError: Object prototype may only be an Object or null: undefined
at Function.create ()
at Object.inherits (kafka-node.js?v=73be29b7:1432:35)
at node_modules/kafka-node/lib/baseProducer.js (kafka-node.js?v=73be29b7:13289:10)
at __require2 (chunk-TDUMLE5V.js?v=73be29b7:10:50)
at node_modules/kafka-node/lib/highLevelProducer.js (kafka-node.js?v=73be29b7:13363:24)
at __require2 (chunk-TDUMLE5V.js?v=73be29b7:10:50)
at node_modules/kafka-node/kafka.js (kafka-node.js?v=73be29b7:21120:33)
at __require2 (chunk-TDUMLE5V.js?v=73be29b7:10:50)
at kafka-node.js?v=73be29b7:21138:16

@BlackHandguy
Copy link
Author

vue3 project by vite.
import kafka from 'kafka-node'
i get this error in browser console.

@BlackHandguy BlackHandguy changed the title kafka-node.js?v=73be29b7:1432 Uncaught TypeError: Object prototype may only be an Object or null: undefined at Function.create (<anonymous>) at Object.inherits (kafka-node.js?v=73be29b7:1432:35) at node_modules/kafka-node/lib/baseProducer.js (kafka-node.js?v=73be29b7:13289:10) at __require2 (chunk-TDUMLE5V.js?v=73be29b7:10:50) at node_modules/kafka-node/lib/highLevelProducer.js (kafka-node.js?v=73be29b7:13363:24) at __require2 (chunk-TDUMLE5V.js?v=73be29b7:10:50) at node_modules/kafka-node/kafka.js (kafka-node.js?v=73be29b7:21120:33) at __require2 (chunk-TDUMLE5V.js?v=73be29b7:10:50) at kafka-node.js?v=73be29b7:21138:16 vue3 project by vite. import kafka from 'kafka-node' Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant