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.

bug: typescript tsc build throwing complier error

See original GitHub issue

Describe the bug

tsc (typescript compiler) is throwing below error #16 5.784 node_modules/axios-cache-interceptor/dist/storage/web-api.d.ts(21,50): error TS2304: Cannot find name ‘Storage’.

To Reproduce

Additional context

  • Axios: ^0.26.0
  • Axios Cache Interceptor: ^0.10.6
  • What storage is being used: Redis
  • Node Version: v14.8.1
  • typescript : v4.7.4

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
himasimplisafecommented, Jul 14, 2022

Oh good to know, thank you

1reaction
himasimplisafecommented, Jul 18, 2022

yes, thank you for your response, i needed to add DOM to the "lib": ["es2020"],

Read more comments on GitHub >

github_iconTop Results From Across the Web

4.8 regression with `tsc --build`: error correctly reported, ...
json correctly fails with an error, but running the same command again exits 0 with no output. Note that in this case, the...
Read more >
Is there a way for the typescript compiler to throw an error ...
No. I'm hoping for the compiler to actually throw an error and have the build fail if "any" is used. – Ryan Santos....
Read more >
TypeScript errors and how to fix them
Below you find a list of common TypeScript errors along with the buggy code ... There is a typo in our code which...
Read more >
TypeScript: Documentation - The Basics
This installs the TypeScript Compiler tsc globally. You can use npx or similar tools if you'd prefer to run tsc from a local...
Read more >
Understanding TypeScript's “Compilation Process” & the ...
However, the tsc compiler (short for TypeScript compiler) needs a JSON ... the JavaScript, then the TypeScript compiler will throw an error.
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