Invalid configuration object in hot
See original GitHub issue- Laravel Mix Version: “laravel-mix”: “^6.0.27”
- Node Version v14.15.1
- NPM Version 6.14.8
- OS: Win10
Description:
hot mode does not start
Laravel-Mix 6.0.27 + Vue 2.6.14
"scripts": {
"dev": "npm run development",
"development": "mix",
"watch": "mix watch",
"watch-poll": "mix watch -- --watch-options-poll=1000",
"hot": "mix watch --hot",
"prod": "npm run production",
"production": "mix --production",
"serve": "vue-cli-service serve",
"build": "vue-cli-service build"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-router": "~4.5.0",
"@vue/cli-plugin-vuex": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"file-loader": "^6.2.0",
"node-sass": "^4.12.0",
"sass-loader": "^8.0.2",
"vue-template-compiler": "^2.6.11"
},
"dependencies": {
"axios": "^0.21.1",
"bootstrap": "^4.6.0",
"bootstrap-vue": "^2.21.2",
"core-js": "^3.6.5",
"laravel-mix": "^6.0.27",
"v-calendar": "^2.3.2",
"v-video-embed": "^1.0.8",
"vue": "^2.6.14",
"vue-plyr": "^7.0.0",
"vue-router": "^3.2.0",
"vue-template-loader": "^1.1.0",
"vuex": "^3.4.0"
}
Steps To Reproduce:
- npm run hot
- Message in terminal
[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 'webpackbar'. These properties are valid:
object { bonjour?, client?, compress?, devMiddleware?, firewall?, headers?, historyApiFallback?, host?, hot?, http2?, https?, liveReload?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onLi
stening?, open?, port?, proxy?, public?, setupExitSignals?, static?, transportMode?, watchFiles? }
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:6
Top Results From Across the Web
Invalid configuration object. Webpack has been initialised ...
In my case it was caused by copying the webpack.js from another project and not changing the 'entry' and 'output' paths to match...
Read more >Invalid configuration object - vuejs-templates/webpack- ...
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
Read more >[webpack-cli] invalid configuration object. ...
Invalid configuration object : Webpack has been initialized using a configuration ... 'src'),** hot: true, open: true, port: 3000, }, plugins: [ new...
Read more >[webpack-cli] Invalid configuration object - JavaScript
These properties are valid: object { bonjour?, client?, compress?, dev?, firewall?, headers?, historyApiFallback?, host?, hot?, http2?, https?, ...
Read more >webpackoptionsvalidationerror: invalid configuration object.
WebpackOptionsValidationError : Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For me, npm run hot works now. I just ran npm update to update all dependencies and now it works.
Yes but it has been fixed, but it is not released yet. So, you either have to wait for it to be released. Or if you don’t want to wait you can add the package from GitHub by adding
"laravel-mix": "https://github.com/JeffreyWay/laravel-mix.git",
todevDependencies
to your package.jsonor running