Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Error compilation when we try to use WebPack 4 #44

Open
gilardh opened this issue Jun 17, 2019 · 3 comments
Open

Error compilation when we try to use WebPack 4 #44

gilardh opened this issue Jun 17, 2019 · 3 comments

Comments

@gilardh
Copy link

gilardh commented Jun 17, 2019

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
Copy link

1baga commented Jan 28, 2020

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

@gilardh
Copy link
Author

gilardh commented Jan 28, 2020

I used another method for my project.

@1baga
Copy link

1baga commented Jan 28, 2020

I also facing the same issue...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants