question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: Unknown option '--disable-host-check'

See original GitHub issue

version(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

image

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:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
drittercommented, Mar 25, 2021

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.

9reactions
pierrescommented, Sep 2, 2021

Note: for webpack-dev-server 4.1 you have to set --allowed-hosts all. See https://webpack.js.org/configuration/dev-server/#devserverallowedhosts

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found