lz4.js icon indicating copy to clipboard operation
lz4.js copied to clipboard

Does not work with node 18

Open mark-b-ab opened this issue 2 years ago • 3 comments

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

mark-b-ab avatar Nov 03 '22 14:11 mark-b-ab

bump

jimmywarting avatar Sep 13 '23 09:09 jimmywarting

bump

harshagarwalsol avatar Mar 22 '24 07:03 harshagarwalsol

bump

simyara avatar May 29 '24 13:05 simyara