types.d.ts is invalid in 5.75
See original GitHub issueBug report
What is the current behavior?
types.d.ts is valid prior to version 5.75, but in 5.75 it becomes invalid.
If the current behavior is a bug, please provide the steps to reproduce.
Using 5.75, it’s not possible to compile (tsc) typescript projects using webpack because the syntax of types.d.ts is invalid.
It looks like this commit changed any occurrence of readonly to get in that file, which isn’t valid syntax: https://github.com/webpack/webpack/commit/c18203c89447cd6728aa1f9d77b03aff7ae6e03f
What is the expected behavior? Typing syntax is valid.
Other relevant information: webpack version: 5.75 Node.js version: 14 Operating System: macOS 12.6 Additional tools:
Issue Analytics
- State:
- Created 9 months ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Invalid d.ts file generated from valid input #361 - GitHub
This output file cannot be used, it generates a compile error: TS1008: Unexpected token; 'type name' expected.
Read more >TypeScript typings give me "index.d.ts is not a module"
I have installed the typings using npm i @types/webrtc --save-dev . Hovering over RTCPeerConnection in const peerConnection1 = new RTCPeerConnection(); display ...
Read more >TypeScript errors and how to fix them
A list of common TypeScript errors and how to fix them.
Read more >Reliability of Children's Testimony in the Era of Developmental ...
Both recognition and recall tests were used to measure false memory. Both types of tests showed that parental suggestion created false memories at...
Read more >Setting up the Webpack Dev Server - Three.js Tutorials
and bundling all of our code dependencies into a single JavaScript file that ... webpack webpack-cli webpack-dev-server webpack-merge ts-loader --save-dev.
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 Free
Top 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

Understood, thanks for your response.
And
4.0.5is really very old version, we are trying to avoid such situations, but sometimes it is impossible