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.

Typescript errors on version 4.3.0

See original GitHub issue

Two new errors have appeared on the typescript definitions after upgrading to 4.3.0:

node_modules/helmet/dist/middlewares/content-security-policy/index.d.ts:21:70 - error TS1335: 'unique symbol' types are not allowed here.

21         [x: string]: Iterable<ContentSecurityPolicyDirectiveValue> | unique symbol;
                                                                        ~~~~~~~~~~~~~

node_modules/helmet/dist/middlewares/content-security-policy/index.d.ts:23:9 - error TS1332: A variable whose type is a 'unique symbol' type must be 'const'.

23     var dangerouslyDisableDefaultSrc: unique symbol;
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
EvanHahncommented, Dec 27, 2020

This should be fixed in helmet@4.3.1. Thanks for reporting!

1reaction
EvanHahncommented, Dec 27, 2020

Thanks for letting me know.

What version of TypeScript are you using?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Documentation - TypeScript 4.3
In recent versions, TypeScript introduced a new type construct: template string types. These are types that either construct new string-like types by ...
Read more >
The Angular Compiler requires TypeScript >=4.2.3 and <4.3.0 ...
1 Answer 1 · npm install typescript@'>==4.2.3 <4.3.0' or npm install typescript@'>==4.2.3 <4.3.0' --save-dev · Go to package.json and change your typescript ......
Read more >
Announcing TypeScript 4.3 - Microsoft Developer Blogs
Today we're excited to announce the availability of TypeScript 4.3! If you're not yet familiar with TypeScript, it's a language that builds ...
Read more >
Firebase JavaScript SDK Release Notes - Google
The earlier update in version 9.13.0 upgraded TypeScript only in the root. ... Fixed some typings issues that caused compile errors for TypeScript...
Read more >
typescript - npm
TypeScript is a language for application scale JavaScript development. Latest version: 4.9.4, last published: 18 days ago.
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