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

Cannot find module '../build/Release/xxhash Under 2.0.0-beta.0 with nodejs version under 23 #20

Open
youngpark17 opened this issue Nov 13, 2024 · 0 comments

Comments

@youngpark17
Copy link

youngpark17 commented Nov 13, 2024

I encountered like this error only under 2.0.0-beta.0 version

this is error combination
2.0.0-beta.0 + nodejs[23] => error
2.0.0-beta.0 + nodejs[14 ~ 16] => work ok(I did not try with nodejs17 and over)
1.2.1 + nodejs[14 ~ 16] => error
1.2.1 + nodejs[23] => work ok(I did not try with nodejs17 and over)

in 2.0.0-beta.0 dependency is changed

Guess something seems fine as it changes from lz4 to lz4-asm from 2.0.0 to lz4-asm,
Is this first reported ?

Error: Cannot find module '../build/Release/xxhash'
Require stack:
- /Users/USER/IdeaProjects/node-consumer2/node_modules/lz4/lib/utils.js
- /Users/USER/IdeaProjects/node-consumer2/node_modules/lz4/lib/static.js
- /Users/USER/IdeaProjects/node-consumer2/node_modules/lz4/lib/lz4.js
- /Users/USER/IdeaProjects/node-consumer2/node_modules/kafkajs-lz4/lib/index.js
- /Users/USER/IdeaProjects/node-consumer2/src/kafka/producer.js
- /Users/USER/IdeaProjects/node-consumer2/src/order-message-external-consumer.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1028:15)
    at Function.Module._load (node:internal/modules/cjs/loader:873:27)
    at Module.require (node:internal/modules/cjs/loader:1100:19)
    at require (node:internal/modules/cjs/helpers:119:18)
    at Object.<anonymous> (/Users/USER/IdeaProjects/node-consumer2/node_modules/lz4/lib/utils.js:4:11)
    at Module._compile (node:internal/modules/cjs/loader:1198:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
    at Module.load (node:internal/modules/cjs/loader:1076:32)
    at Function.Module._load (node:internal/modules/cjs/loader:911:12)
    at Module.require (node:internal/modules/cjs/loader:1100:19) {
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