I've suddenly started to get ```> [webpack-cli]...
# javascript
a
I've suddenly started to get
Copy code
> [webpack-cli] Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
   - configuration has an unknown property '_assetEmittingPreviousFiles'. These properties are valid:
     object { bonjour?, client?, compress?, dev?, firewall?, headers?, historyApiFallback?, host?, hot?, http2?, https?, liveReload?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, public?, setupExitSignals?, static?, transportMode?, watchFiles? }
error in webpack run tasks. I am not sure what changed. Does anybody else have the promblem?
r
Everyone ;(
a
Thanks @Robert Jaros. I tried to search the youtrack. Probably it does not include code samples.
It is strange that it was working yesterday
m
yes, switch to webpack v4 and it will work. In gradle.properties append: kotlin.js.webpack.major.version=4
a
I am not sure that all my projects will be compatible with webpack 4, I used @Ilya Goncharov [JB] suggestion and switched the version of dev-server. Seems to be working propely at least with one demo
m
oh, didn't know about switching the dev-server. Will have a look. Sorry if I mislead you in any way! 🙂
a
It is there in the issue.
m
Got it, thanks!
392 Views