5.40 breaks type of webpack-dev-server
See original GitHub issueBug report
What is the current behavior?
If the current behavior is a bug, please provide the steps to reproduce.
- install
webpack
and@types/webpack-dev-server
- create a variable of type
Configuration
fromwebpack
- Try to access its
devServer
property
What is the expected behavior?
For webpack 3.38.1, this works
Other relevant information:
webpack version: 5.40.0
Node.js version: v16.3.0
Operating System: macOS 11.4
Additional tools: TypeScript 4.3.2 and @types/webpack-dev-server@3.11.1
, @types/webpack-dev-server@3.11.4
also reproduces this issue
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:12 (8 by maintainers)
Top Results From Across the Web
Dev server breaks library entry type #4469 - GitHub
Bug report We have an app with two entries - the main one for the app, and a second entry for a library....
Read more >DevServer - webpack
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >devServer.watchFiles breaks Hot Module Replacement (HMR ...
I'm following a Udemy course and trying to get HMR running with webpack version 5.67.0 and webpack-dev-server 4.7.3, but it does not work....
Read more >@types/webpack-dev-server - npm
Stub TypeScript definitions entry for webpack-dev-server, which provides its own types definitions. Latest version: 4.7.2, last published: a ...
Read more >How I solved and debugged my Webpack issue through trial ...
import React from 'react';import PropTypes from 'prop-types'; ... And it turned out that the webpack-dev-server has been in maintenance mode ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@types/webpack-dev-server
extends the webpack typings with thedevServer
property:https://github.com/DefinitelyTyped/DefinitelyTyped/blob/415b6859c78cc7fe694fb12a10ea88f1fadfe958/types/webpack-dev-server/index.d.ts#L347-L355
For this to work
webpack
must not provide adevServer
property inConfiguration
.This seems fine and nothing has changed between these version.
@types/webpack
installed (yarn why/npm ls @types/webpack
)webpack
installed below@types/webpack-dev-server
(yarn why/npm ls webpack
)webpack
or@types/webpack-dev-server
installedIssue was closed because of inactivity.
If you think this is still a valid issue, please file a new issue with additional information.