lz4.js
lz4.js copied to clipboard
Does not work with node 18
In order to detect whether it is running in browser or nodejs it checks typeof function fetch. In node 18 fetch api is available but it does not allow to fetch from local directory.
You will receive such error TypeError: Failed to parse URL from /Users/mark/Phpstorm/dtq/node_modules/lz4-asm/dist/_lz4.wasm
The only way to bypass it is to add --no-experimental-fetch
to your node command
bump
bump
bump