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.

Cannot find type definition file for 'node/http' after update to 22.5.1

See original GitHub issue
  • Version: 22.5.1 (22.4.1 is working fine)
  • Electron Version: 8.2.3
  • Electron Type (current, beta, nightly): current
  • Target: win, linux, mac
../../node_modules/app-builder-lib/out/publish/PublishManager.d.ts:1:23 - error TS2688: Cannot find type definition file for 'node/http'.

1 /// <reference types="node/http" />
                        ~~~~~~~~~

I’m getting this error while building hooks using using webpack. I’m using the following import:

import { AfterPackContext } from 'electron-builder';

PublishManager.d.ts of 22.4.1

/// <reference types="node" />
...

PublishManager.d.ts of 22.5.1

/// <reference types="node/http" />
...

Edit: 22.7.0 is still broken

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:7
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sapkracommented, Jun 20, 2020

@develar Can you have a look at this problem please. The library is unusable with this problem.

0reactions
sapkracommented, Oct 31, 2020

I’ve setup a new project with the latest electron and electron-builder and have no problems anymore. I think the reason is that I have skipLibCheck in my new project like @Armaldio already said.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find type definition file for 'node'
Try re-importing the @types/node package by running this in the Package Manager Console in Visual Studio: npm i -D @types/node.
Read more >
Cannot find type definition file for 'node' in TypeScript
To solve the error "Cannot find type definition file for node", ... Open your terminal in the root directory of your project and...
Read more >
Solved: Impossible to run Adrenalin Edition Sofware after
Solved: Hello, Since updating my graphics card driver via Adrenalin Edition to version 22.10.1, I can no longer open the application.
Read more >
AMD Adrenalin Edition 22.10.3 (Optional) Released : r/Amd
World Of Warships prediction lines may be missing on Radeon™ RX 6000 ... 100% in Radeon performance metrics after closing games on some...
Read more >
Rolling back AMD Drivers - Epic Games Store Support
With the newest versions of AMD Drivers (22.5.1 and 22.6.1), Fortnite Players have reported performance issues. AMD is aware of these issues.
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