Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix [webpack-cli] Invalid options object (firewall renamed to allowedHosts) #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

oguennec
Copy link

This PR is meant to fix the following error while running navbar locally.

➜  navbar git:(master) ✗ yarn start:standalone
yarn run v1.22.19
$ webpack serve --env standalone
[webpack-cli] Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
 - options has an unknown property 'firewall'. These properties are valid:
   object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?, headers?, historyApiFallback?, host?, hot?, http2?, https?, ipc?, liveReload?, magicHtml?, onAfterSetupMiddleware?, onBeforeSetupMiddleware?, onListening?, open?, port?, proxy?, server?, setupExitSignals?, setupMiddlewares?, static?, watchFiles?, webSocketServer? }
 - options.client has an unknown property 'host'. These properties are valid:
   object { logging?, overlay?, progress?, reconnect?, webSocketTransport?, webSocketURL? }
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

The firewall option has been renamed as of webpack-dev-server v4.0.0-rc.0 to allowedHosts. webpack-config-single-spa must be updated to a more recent version that includes the option renaming fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant