node-lz4
node-lz4 copied to clipboard
Can't resolve '../build/Release/lz4'
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
I don't think that node-lz4 would be usable in a browser -- it needs the native extension of the lz4 library itself.
You can use lz4.js
under build
directory of this repository in browser.
@nieyuyao have you done that successfully in a browser?
@ankon yes, i use build/lz4.js
in browser.