Could not find a declaration file for module `@electron/remote/main`
cawa-93 opened this issue · 2 comments
cawa-93 commented
I just install @electron/remote@1.1.0
.
// main.ts
import {initialize} from '@electron/remote/main'; // TS7016: Could not find a declaration file for module '@electron/remote/main'.
initialize();
As ugly workaround I must use
import {initialize} from '@electron/remote/dist/src/main';
Dalqin commented
Something goofy with the types, for sure.
I notice the types export initialize
for @electron/remote
which is misleading if the documentation says to import from @electron/remote/main
.
import {initialize} from '@electron/remote'
, but doesn't actually work.