electron-userland / electron-builder

A complete solution to package and build a ready for distribution Electron app with “auto update” support out of the box
https://www.electron.build
MIT License
13.46k stars 1.71k forks source link

electron-updater error TS6053: File 'typings/electron.d.ts' not found #8264

Open Noobsai opened 2 weeks ago

Noobsai commented 2 weeks ago

Cannot build project after upgrading npm package electron-updater from 6.1.8 to 6.2.1 with "skipLibCheck": false in TS-config:

node_modules/electron-updater/out/AppUpdater.d.ts:1:22 - error TS6053: File 'D:/project-name/typings/electron.d.ts' not found.

1 /// <reference path="../../../typings/electron.d.ts" />
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
node_modules/electron-updater/out/electronHttpExecutor.d.ts:1:22 - error TS6053: File 'D:/project-name/typings/electron.d.ts' not found.

1 /// <reference path="../../../typings/electron.d.ts" />
                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Found 2 error(s).

It seems the npm package has been broken since version 6.1.9.

Workaround:

srizzon commented 6 days ago

Same issue here, but didn't work when downgrading to 6.1.8 and set skipLibCheck=true. Any solution?

matiasnl23 commented 6 days ago

I'm encountering the same error using the latest Electron and electron-updater. I don't know if I'm doing something wrong, but it looks for the typing/electron.d.ts file in my root folder instead of looking for it in node_modules or another appropriate location.