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

is not supported resolving ES modules #207

Open
dingshaohua-com opened this issue Dec 27, 2024 · 0 comments
Open

is not supported resolving ES modules #207

dingshaohua-com opened this issue Dec 27, 2024 · 0 comments

Comments

@dingshaohua-com
Copy link

when i us remote at main.js

import remote from '@electron/remote/main';
console.log(111, remote);

i got like this:

App threw an error during load
Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import '/electron-demo/node_modules/@electron/remote/main' is not supported resolving ES modules imported from /electron-demo/src/index.js
Did you mean to import "@electron/remote/main/index.js"?
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

No branches or pull requests

1 participant