You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Types in webpack-dev-server/types/lib/Server.d.ts refer to non-existing Request_1 and Response_1 interfaces.
node_modules/webpack-dev-server/types/lib/Server.d.ts:1770:40 - error TS2552: Cannot find name 'Request_1'. Did you mean 'Request'?
1770 devMiddleware?: DevMiddlewareOptions<Request_1, Response_1> | undefined;
~~~~~~~~~
node_modules/webpack-dev-server/types/lib/Server.d.ts:1770:51 - error TS2552: Cannot find name 'Response_1'. Did you mean 'Response'?
1770 devMiddleware?: DevMiddlewareOptions<Request_1, Response_1> | undefined;
Expected Behavior
Types refer to existing interfaces.
How Do We Reproduce?
Import Configuration from webpack-dev-server (5.0.0 or 5.0.1) and look at the types of Configuration['devMiddleware']. I've prepared this Codesandbox that points directly to the offending type. For some reason the direct link doesn't consistently work for me so an alternative is to go to this link, which points to a different file in the same Codesandbox, and then right-click Configuration and select Go to Definition.
Please paste the results of npx webpack-cli info here, and mention other relevant information
The text was updated successfully, but these errors were encountered:
cascornelissen
changed the title
Types of lib/Server referring to non-existing Request_1 and Response_1 interfaces
Types in lib/Server referring to non-existing Request_1 and Response_1 interfaces
Feb 15, 2024
Bug report
Actual Behavior
Types in
webpack-dev-server/types/lib/Server.d.ts
refer to non-existingRequest_1
andResponse_1
interfaces.Expected Behavior
Types refer to existing interfaces.
How Do We Reproduce?
Import
Configuration
fromwebpack-dev-server
(5.0.0 or 5.0.1) and look at the types ofConfiguration['devMiddleware']
. I've prepared this Codesandbox that points directly to the offending type. For some reason the direct link doesn't consistently work for me so an alternative is to go to this link, which points to a different file in the same Codesandbox, and then right-clickConfiguration
and select Go to Definition.Please paste the results of
npx webpack-cli info
here, and mention other relevant informationThe text was updated successfully, but these errors were encountered: