Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants