-
Notifications
You must be signed in to change notification settings - Fork 8
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
npm package appears corrupt #3
Comments
This seems to be an upstream issue — I can replicate this issue when I try to install the
@saimonmoore Please open an issue in the |
Was already opened: pierrec/node-lz4#97 |
It's due to a breaking change in yarn v1.22. |
@saimonmoore Can you confirm the the workaround posted above by @leoparis89 fixes this issue?
|
Can you folks try the latest v2 beta release? See #7 (comment)
|
Hey paambati |
@link2malkeet Can you share the version of Node and the relevant piece of code where you’re using this package? |
Thanks for coming so quickly, Usage looks very simple but could not get it working yet. 😓 |
@link2malkeet This should work though, I'm not sure of the root-cause of your issue. Can you follow the examples (or even our tests); they're fairly straightforward and are known to work. If that doesn't work, I'm afraid we'll need to know more about your setup and your code. |
Well our setup is pretty straight forward. Before we create Producer and Consumer instances, we simply add the compression configuration as suggested so build and deployment works fine but when consumer listens to the kafka topic(which has messages compressed with LZ4), the subscription throws this error saying can you point out where we are supposed to add LZ4 configuration? |
@link2malkeet They're supposed to be added to the kafkajs-lz4/test/index.test.ts Lines 59 to 112 in 5efecce
|
Finally it worked. Seems this is culprit |
Can you guys please update it with the change so that we could use this libraray with the required fix? |
@link2malkeet I'm sorry, but I don't think that's the right approach. I'd recommend you read up about CommonJS and ES6 imports and how they're different. For a proper solution to your issue, like I've said before, I'd need more information — that includes your Node version, TS version (if you're using any), Babel config (if you're using any) and more relevant code (how you're importing this package, how/where you're using the produce & consume methods, etc.) If you'd like to pursue this, I'd recommend you open a new issue as yours seems to be different from this. |
Same issues when i use nestjs monorepo. {
"compilerOptions": {
"module": "CommonJS",
"target": "ES2017"
"Other configs": "..."
}
} |
Unable to install this package:
The text was updated successfully, but these errors were encountered: