unknown property 'dev' using "run hot"
See original GitHub issue{
"name": "test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"hot": "mix watch --hot"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"laravel-mix": "^6.0.18"
},
"dependencies": {
"vue": "^2.6.12"
}
}
Then do npm run hot
and I get this:
Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
- configuration has an unknown property ‘dev’. These properties are valid: object { bonjour?, client?, compress?, devMiddleware?, firewall?, headers?, historyApiFallback?, host?, hot?, http2?, https?, liveReload?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, public?, setupExitSignals?, static?, transportMode?, watchFiles? }
There’s no webpack config and webpack.mix is emtpy.
Issue Analytics
- State:
- Created 2 years ago
- Comments:17
Top Results From Across the Web
webpack options has an unknown property 'hotOnly ...
I am running the command npx webpack-dev-server --mode development in my react application and getting the preceding error. [webpack-cli] ...
Read more >configuration has an unknown property 'error' · Issue #1142
Invalid configuration object. webpack-dev-server has been initialised using a configuration object that does not match the API schema.
Read more >options has an unknown property 'public'. these ...
When I attempt to use the "public" option of the "devServer" configuration I get the following error: [webpack-cli] Invalid options object. Dev Server...
Read more >Setting up the Webpack Dev Server - Three.js Tutorials
You probably have another project started on your PC somewhere using port 8080. Close that project and then try restarting again. Unknown Property...
Read more >[Solved] Getting Set Up not running - Questions
Dev Server has been initialized using an options object that does not match the API schema. - options has an unknown property 'publicPath'....
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
I temporarily fixed it by overriding the Webpack configuration generated by Laravel Mix:
😱😱😱
We’re gonna have to push out a fix for this and lock the version to a specific beta release (… we’re on a beta b/c of webpack 5 support). I didn’t realize that
^
would upgrade through different beta versions, apologies. I’ll see if I can take care of this today. (a PR would be welcome too!)Plan: