-
-
Notifications
You must be signed in to change notification settings - Fork 602
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
serve command suddenly stopped working (due to recent version bump?) #2894
Comments
Remove |
The problem can be due invalid usage of API, we have a lot of integration test, example webpack/webpack-dev-server#3649 and no problems with webpack v4 and webpack v5 |
And please always clarify steps:
Which projects? How you run dev server? What are versions? |
The project I'm trying to run is a monorepo project, that has all the webpack configuration in one of their dependencies
It should not work.
and works as expected. So I assume that it has to be related in some way with 1.5.2 version of the package. |
Please update |
Thanks a lot @alexander-akait ! It worked 😊 |
Does not work for me, even older previously working builds from today and yesterday are not working anymore which is very weird. |
Sorry information is not enough to help you |
This updates: - webpack from 5.44.0 -> 5.50.0 - webpack-cli from 4.7.2 -> 4.8.0 - webpack-dev-server from 4.0.0-beta.3 -> 4.0.0-rc.1 It's the last one that's most interesting. A bug has emerged in beta.3 which is preventing some of our projects from building correctly. See comments here: webpack/webpack-cli#2894 (comment)
@chillyistkult @alexander-akait Did you ever find a fix by any chance? I'm facing the same issue when upgrading to webpack 5.0.1. I was previously on webpack 4.0.0
|
Please update deps to the latest versions, thank you |
Using [email protected] [email protected] and all dependencies updated but i still get this '_assetEmittingPreviousFiles' issue |
I just had this issue but it was due to webpack-cli not being updated to the latest version, this fixed it |
Even though I don't use webpack-cli in my code, I installed it but still had same issue |
@dannkkie Hello, can you provide a reproducible test repo? |
This is the specific error message I get |
hm, sounds like you have a mistake with webpack node api |
Update i downgraded webpack-dev-server to 4.15.1 and i dont see the error again |
Sorry, your infromation is not helpful, I think you pass the |
So i just tried that with the latest version again and I get 'onBeforeSetupMiddleware' |
@dannkkie Please read the migration guide, we have breaking changes between v4 and v5 https://github.com/webpack/webpack-dev-server/blob/master/migration-v5.md |
This helped...Thanks 😀 |
Hi Everyone, Invalid options object. Dev Server has been initialized using an options object that does not match the API schema.
Using: Current code: The issue has been fixed - the key part was the one mentioned by @alexander-akait Sorry, your infromation is not helpful, I think you pass the compiler to dev server constructor firstly, but in v5, you need to pass options as a first argument https://github.com/webpack/webpack-dev-server/blob/master/lib/Server.js#L257 and the compiler as second |
I just ran into the I needed to update webpack-cli to 5.1.4. |
Describe the bug
I assume that after bumping @webpack-cli/serve to 1.5.2 something has been broken, as after adding the following in my package.json, webpack serves correctly as expected.
What is the current behavior?
Webpack fails to build on serve.
To Reproduce
Steps to reproduce the behavior:
I have just done a clean install of one of my projects using the serve command. Suddenly, it stopped working. I have seen that both packages
webpack-cli
and@webpack-cli/serve
have been published recently (14h ago at time of writing this issue).Expected behavior
Serve should work as expected
Screenshots
Please paste the results of
webpack-cli info
here, and mention other relevant informationAdditional context
The text was updated successfully, but these errors were encountered: