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

Class extends value undefined is not a constructor or null #1464

Open
kennethtomagan opened this issue Nov 17, 2022 · 1 comment
Open

Class extends value undefined is not a constructor or null #1464

kennethtomagan opened this issue Nov 17, 2022 · 1 comment

Comments

@kennethtomagan
Copy link

Encounter an error.
did you guys know what is this error and how to solve this?

Error Log:

app.js:83282 Uncaught TypeError: Class extends value undefined is not a constructor or null
    at ./node_modules/kafka-node/lib/producerStream.js (app.js:83282:30)
    at __webpack_require__ (app.js:219225:42)
    at ./node_modules/kafka-node/kafka.js (app.js:77575:26)
    at __webpack_require__ (app.js:219225:42)
    at ./resources/js/plugins/kafka.js (app.js:50554:13)
    at __webpack_require__ (app.js:219225:42)
    at ./resources/js/app.js (app.js:49904:75)
    at __webpack_require__ (app.js:219225:42)
    at app.js:219395:64
    at __webpack_require__.O (app.js:219262:23)

Code in ./node_modules/kafka-node/lib/producerStream.js (app.js:83282:30)
The error point on Writable class.

class ProducerStream extends Writable {

My webpacak.config.js

{
    resolve: {
                alias: { ...},
                fallback:  {
                    "fs": false,
                    "tls": false,
                    "net": false,
                    "path": false,
                    "zlib": false,
                    "stream": false,
                    "crypto": false,
                    "crypto-browserify": require.resolve('crypto-browserify'), //if you want to use this module also don't forget npm i crypto-browserify 
                } 
            },
    module: {
        rules: [...]
},
@edubois10
Copy link

Hi, did you solve your issue by any chance? I have the same with the kafka-node package. I am trying to consume messages from a topic. I am using nuxt3

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

2 participants