Error: Unknown option '--disable-host-check'
See original GitHub issueversion(s) affected: symfony/webpack-encore-bundle 1.9.0 webpack-encore 1.0.4 webpack-dev-server@^4.0.0-beta.0
Description
Since v1.0.0 when configure encore dev-server like that
"dev-server": "encore dev-server --port 8081 --host 0.0.0.0 --public http://mydomain.dev:8081 --disable-host-check"
i have
Possible Solution
I think webpack-dev-server@^4.0.0-beta.0 is the problem
No problem for my second project create 3 weeks ago.
symfony/webpack-encore-bundle 1.9.0 @symfony/webpack-encore@0.32.1 webpack-dev-server@^3.1.14
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Webpack 5: disableHostCheck - Stack Overflow
Now i want to disable this with the option disableHostCheck, but it seems in the new version of webpack this option is removed....
Read more >Invalid option on webpack-cli version 4+ - Tutor - Overhang.IO
See: Error: Unknown option '–disable-host-check' · Issue #916 ... so that we can change for our MFE the webpack-cli command options/line.
Read more >- options has an unknown property 'disablehostcheck'. these ...
Dev Server has been initialized using an options object that does not match the API schema. - options has an unknown property 'disableHostCheck'....
Read more >ng serve - Angular
Option Description Value Type Default Value
‑‑hmr Enable hot module replacement. boolean false
‑‑host Host to listen on. string localhost
‑‑open Opens the url in default...
Read more >What does disableHostCheck in package.json exactly do?
--disable-host-check ... Disabling TLS 1.0 1.1 and SSLV3 - Regedit not impacting the setting? ... Handling errors like a pro in TypeScript.
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 Free
Top 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
For the records:
--disable-host-check
is replaced with--no-firewall
(see https://github.com/webpack/webpack-dev-server).--firewall false
did not work for me.Note: for webpack-dev-server 4.1 you have to set
--allowed-hosts all
. See https://webpack.js.org/configuration/dev-server/#devserverallowedhosts