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

contentBase not supported in new webpack-dev-server #237

Open
Wayto0blivion opened this issue Dec 6, 2023 · 0 comments
Open

contentBase not supported in new webpack-dev-server #237

Wayto0blivion opened this issue Dec 6, 2023 · 0 comments

Comments

@Wayto0blivion
Copy link

Ran into an issue where "contentBase" in webpack.base.js was not supported in the currently used version of webpack-dev-server, and instead needed to be replaced with "static".

Here is the error I encountered:
[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 'contentBase'. 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? }
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