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.

Compilation error with version 3.1.0

See original GitHub issue

upgrading from 3.0.6 to 3.1.0, I’m hitting these compilation errors:

node_modules/cross-fetch/index.d.ts:18:14 - error TS2304: Cannot find name 'BodyInit'.

18   new(body?: BodyInit | null, init?: ResponseInit): Response;
                ~~~~~~~~

node_modules/cross-fetch/index.d.ts:18:38 - error TS2304: Cannot find name 'ResponseInit'.

18   new(body?: BodyInit | null, init?: ResponseInit): Response;
                                        ~~~~~~~~~~~~

node_modules/cross-fetch/index.d.ts:25:14 - error TS2304: Cannot find name 'HeadersInit'.

25   new(init?: HeadersInit): Headers;

environment versions:

(base) [apupier@fedora vscode-camelk]$ nvm version
v11.15.0
(base) [apupier@fedora vscode-camelk]$ npm --version
6.7.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
lquixadacommented, Mar 18, 2021

ok, this is supposed to be fixed on 3.1.1. please let me know if other issues come up. closing this for now.

1reaction
pitgrapcommented, Mar 18, 2021

Same here. If I open the index.d.ts all 3 lines are marked “red” in my IDE. BodyInit and HeadersInit are missing in the import, but ResponseInit is not existing at all. 😦

Caused by PR #93

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compilation error with version 3.1.2 · Issue #101 - GitHub
Upgrading from 3.1.1 to 3.1.2 causes the following errors: node_modules/cross-fetch/index.d.ts(1,13): error TS1005: '=' expected. node_modules/ ...
Read more >
ERROR in The Angular Compiler requires TypeScript >=3.1.1 ...
In my case below command worked for windows. It will install latest required version between 3.1.1 and 3.2.
Read more >
Compiler Error after upgraded the Visual Studio 2022 version ...
Hi, I have recently upgraded my VS 2022 to Preview 4.1 version. After that I got compilation errors related to namespaces. FAC1iLEUUAgTW1O.png.
Read more >
Getting compilation error in IntelliJ after upgrading Spark ...
We are currently using spark cassandra connector version 2.4.2 without any issue when compiling in intellij with sbt package.
Read more >
Troubleshooting .NET Framework Targeting Errors - MSBuild
To resolve the error, make sure that your application targets a .NET version that's compatible with the version that's targeted by the ...
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