node-lz4 icon indicating copy to clipboard operation
node-lz4 copied to clipboard

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

Open JosephP91 opened this issue 4 years ago • 4 comments

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

JosephP91 avatar Jan 10 '21 09:01 JosephP91

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

ankon avatar Jan 11 '21 14:01 ankon

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

nieyuyao avatar May 08 '22 05:05 nieyuyao

@nieyuyao have you done that successfully in a browser?

ankon avatar May 08 '22 16:05 ankon

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

nieyuyao avatar May 09 '22 06:05 nieyuyao