Type error with `@types/node` 14.14.31
chetbox opened this issue · 1 comments
chetbox commented
In package.json
I have "@electron/remote": "^1.1.0"
and a dev dependency of "@types/node": "14.14.31"
.
When compiling Typescript I see the following error:
$ tsc
node_modules/@electron/remote/index.d.ts:7:10 - error TS2304: Cannot find name 'NodeRequireCache'.
7 cache: NodeRequireCache;
~~~~~~~~~~~~~~~~
node_modules/@electron/remote/index.d.ts:11:15 - error TS2304: Cannot find name 'NodeExtensions'.
11 extensions: NodeExtensions;
~~~~~~~~~~~~~~
Found 2 errors.
chetbox commented
As a temporary workaround I have created the file electron-remote-workaround.d.ts
:
declare class NodeRequireCache {}
declare class NodeExtensions {}