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

Can't resolve '../build/Release/lz4' #106

Open
JosephP91 opened this issue Jan 10, 2021 · 4 comments
Open

Can't resolve '../build/Release/lz4' #106

JosephP91 opened this issue Jan 10, 2021 · 4 comments

Comments

@JosephP91
Copy link

Hello,

when I try to require the lz4 module in the browser, I get a compilation error:

./node_modules/lz4/lib/utils.js Module not found: Can't resolve '../build/Release/lz4' in '/Users/giuseppepersico/Github/perspective-test/node_modules/lz4/lib'

Any suggestions? I am using the latest version of the dep, which is 0.6.5

@ankon
Copy link
Contributor

ankon commented Jan 11, 2021

I don't think that node-lz4 would be usable in a browser -- it needs the native extension of the lz4 library itself.

@nieyuyao
Copy link

nieyuyao commented May 8, 2022

You can use lz4.js under build directory of this repository in browser.

@ankon
Copy link
Contributor

ankon commented May 8, 2022

@nieyuyao have you done that successfully in a browser?

@nieyuyao
Copy link

nieyuyao commented May 9, 2022

@ankon yes, i use build/lz4.js in browser.

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

3 participants