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:
- Created 3 years ago
- Reactions:7
- Comments:8 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@develar Can you have a look at this problem please. The library is unusable with this problem.
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.