Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not find a declaration file for module @electron/remote/main #52

Closed
cawa-93 opened this issue Apr 29, 2021 · 2 comments · Fixed by #58
Closed

Could not find a declaration file for module @electron/remote/main #52

cawa-93 opened this issue Apr 29, 2021 · 2 comments · Fixed by #58

Comments

@cawa-93
Copy link

cawa-93 commented Apr 29, 2021

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
Copy link

Dalqin commented May 16, 2021

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.

@chetbox
Copy link

chetbox commented May 26, 2021

I believe this PR will also fix #60

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants