https://github.com/yvele/webpack-dev-server-repro
Minimal Webpack Dev Server 5 bug reproduction
https://github.com/yvele/webpack-dev-server-repro
bug-reproduction webpack-cli webpack-dev-server
Last synced: 10 months ago
JSON representation
Minimal Webpack Dev Server 5 bug reproduction
- Host: GitHub
- URL: https://github.com/yvele/webpack-dev-server-repro
- Owner: yvele
- Created: 2024-03-05T08:24:51.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-05T08:28:54.000Z (almost 2 years ago)
- Last Synced: 2025-01-29T16:11:29.903Z (12 months ago)
- Topics: bug-reproduction, webpack-cli, webpack-dev-server
- Language: JavaScript
- Homepage: https://github.com/webpack/webpack-dev-server/issues/5088
- Size: 38.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# webpack-dev-server-repro
> Minimal Webpack Dev Server 5 bug reproduction: https://github.com/webpack/webpack-dev-server/issues/5088
## Start
```sh
npm install && npm start
```
Gives:
```none
> webpack serve
[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 '_assetEmittingPreviousFiles'.
These properties are valid:
object { allowedHosts?, bonjour?, client?, compress?, devMiddleware?,
headers?, historyApiFallback?, host?, hot?, ipc?, liveReload?,
onListening?, open?, port?, proxy?, server?, setupExitSignals?,
setupMiddlewares?, static?, watchFiles?, webSocketServer? }
```
Note that when replacing Webpack CLI version in `package.json`:
```diff
- "webpack-cli": "4.10.0"
+ "webpack-cli": "5.1.4"
```
And re-installing, the build works fine!