I am getting the error
---Error is below
ERROR in ./src/main.ts
Module build failed: [object Object]
@ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts
ERROR in ./src/polyfills.ts
Module build failed: [object Object]
@ multi ./src/polyfills.ts
Below is my webpack.config.js
module.exports = {
devServer: {
host: '0.0.0.0',
disableHostCheck: true
},
entry: [
'webpack-dev-server/client?http://0.0.0.0:4200',
config.paths.demo
]
}
My main.ts and polyfills.ts seem to be all right, I've checked for any errors which there don't seem to be any in those files. My guess is that there is something wrong in my webpack-dev-server.
Does anybody have any suggestions on how to fix this?
I’ve found a solution by deleting the webpack folder in @ngtools. This solution worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With