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

tsconfig.json 中 "module": "esnext" 则无法运行 #4

Open
MoConWu opened this issue Nov 1, 2022 · 2 comments
Open

tsconfig.json 中 "module": "esnext" 则无法运行 #4

MoConWu opened this issue Nov 1, 2022 · 2 comments

Comments

@MoConWu
Copy link

MoConWu commented Nov 1, 2022

tsconfig.json 中 "module": "esnext" 则无法运行

commonjs 可以运行

请问如何做才能够支持 esnext

@Yukun-Guo
Copy link
Owner

Electron 暂时不支持ESM, 你可以试试这个方法electron/electron#21457 (comment)

@MoConWu
Copy link
Author

MoConWu commented Nov 1, 2022

Electron 暂时不支持ESM, 你可以试试这个方法electron/electron#21457 (comment)

好的,谢谢,这个链接的方法试过了,可能会引发其他问题。

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

2 participants