-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Invalid options object: options has an unknown property 'running' (webpack-cli v4.10.0) #5088
Comments
Reproduction for webpack/webpack-dev-server#5088
You can't use |
I am currently updating webpack in my project. I am using: I am getting an error:
I am not using _assetEmittingPreviousFiles anywhere in my code. |
These are my babel versions: |
Check your arguments order for dev server or please update webpack-cli/webpack-dev-server to the lastest stable versions |
webpack-dev-server.js const webpack = require("webpack"); module.exports = function startWebpackDevServer() { // Setup webpack config // Get infrastructure logger from the compiler const options = { const server = new webpackDevServer({ server.start().then(() => { this is the code |
Please look at arguments order - https://github.com/webpack/webpack-dev-server/blob/master/lib/Server.js#L308 |
Thank you! |
Bug report
Actual Behavior
Using:
I get the following error:
I'm not using
running
at all in my config.Expected Behavior
It should work with webpack-cli v4.10.0 as the v5 migration documentation states that:
Note that I'm stuck with webpack-cli v4 because of webpack/webpack-cli#3559
How Do We Reproduce?
Basic repository repro: https://github.com/yvele/webpack-dev-server-repro
Note that upgrading webpack-cli fixes the problem:
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationThe text was updated successfully, but these errors were encountered: