question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

types.d.ts is invalid in 5.75

See original GitHub issue

Bug 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:closed
  • Created 9 months ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
iain-logancommented, Dec 9, 2022

Understood, thanks for your response.

0reactions
alexander-akaitcommented, Dec 9, 2022

And 4.0.5 is really very old version, we are trying to avoid such situations, but sometimes it is impossible

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found