BitGo / bitgo-utxo-lib

UTXO coins functions implemented in pure JavaScript
86 stars 146 forks source link

Error compilation when we try to use WebPack 4 #44

Open gilardh opened 5 years ago

gilardh commented 5 years ago

Hi,

Compiling using webPack version 4 don't work.

Here is the error message:

ERROR in ./node_modules/bitgo-utxo-lib/node_modules/blake2b-wasm/blake2b.wasm WebAssembly module is included in initial chunk. This is not allowed, because WebAssembly download and compilation must happen asynchronous. Add an async splitpoint (i. e. import()) somewhere between your entrypoint and the WebAssembly module: ./src/index.js --> ./src/components/App.js --> .........

image

I use this parameters :

"@babel/core": "^7.4.5",
"@babel/preset-env": "^7.4.5",
"@babel/preset-react": "^7.0.0",
"babel-loader": "^8.0.6",
"css-loader": "^3.0.0",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^3.2.0",
"prop-types": "^15.7.2",
"style-loader": "^0.23.1",
"webpack": "^4.34.0",
"webpack-cli": "^3.3.4",
"webpack-dev-server": "^3.7.1"
1baga commented 4 years ago

Hello, I know it's been a long time but were you able to find a fix for this?

gilardh commented 4 years ago

I used another method for my project.

1baga commented 4 years ago

I also facing the same issue...