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

Created on 4 Feb 2021  路  7Comments  路  Source: symfony/webpack-encore

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/[email protected]
webpack-dev-server@^3.1.14

Most helpful comment

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.

All 7 comments

I do not know if it is related but I have the same type of issue.

Screenshot 2021-02-04 at 16 12 52

I am using the webpack-dev-server@^4.0.0-beta.0 as well.

It was working well with v3.4.1

Some options changed/disappeared in webpack-dev-server@4 (full list here: https://github.com/webpack/webpack-dev-server/blob/08a83a65f5c500a648c12faa2fa03122ee380c8b/CHANGELOG.md#400-beta0-2020-11-27)

@thewalkingcoder --disable-host-check and --allowed-hosts got merged into a single --firewall option

@lokiloq --pfx was moved to --https.pfx

Hi @Lyrkan

Thanks for your answer but I still have the same error:
Screenshot 2021-02-04 at 16 54 21

Here is my config:
Screenshot 2021-02-04 at 16 55 03

I am using "@symfony/webpack-encore": "^1.0.4"

Specifically, --disable-host-check was replaced with --firewall false.

The docs are being updated here: https://github.com/symfony/symfony-docs/pull/14895

Cheers!

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.

Oh, thanks! I've also tried --firewall false but like you but it didn't work.
Thanks for sharing this!

Was this page helpful?
0 / 5 - 0 ratings