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

Error: "Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema" when opening client dev server #14

Open
tamvm opened this issue Mar 3, 2021 · 1 comment

Comments

@tamvm
Copy link

tamvm commented Mar 3, 2021

When starting the dev server, the following error has been printed:
I have tried with two commands to start:

npm start
./node_modules/.bin/webpack-dev-server --open
✖ 「wds」: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration[0] has an unknown property 'mode'. These properties are valid:
   object { amd?, bail?, cache?, context?, dependencies?, devServer?, devtool?, entry, externals?, loader?, module?, name?, node?, output?, parallelism?, performance?, plugins?, profile?, recordsInputPath?, recordsOutputPath?, recordsPath?, resolve?, resolveLoader?, stats?, target?, watch?, watchOptions? }

Anyone has experience with that?
Thank you,

@tamvm
Copy link
Author

tamvm commented Mar 4, 2021

I come with the solution to use webpack v4 (with some warnings). I hope the core team here update the source code so newbie like me feels no pain in the first glance.

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

No branches or pull requests

1 participant