"type": "module"开启ESM后, Cannot read properties of undefined. #753
Answered
by
alex8088
ZeronoFreya
asked this question in
Q&A
-
全新项目, 由于必要的包只有esm, 所以必须开启.
报错: 还需要做些什么吗? |
Beta Was this translation helpful? Give feedback.
Answered by
alex8088
Apr 10, 2025
Replies: 1 comment
-
https://cn.electron-vite.org/guide/dev#electron-%E7%9A%84-esm-%E6%94%AF%E6%8C%81 esm 必须为非沙盒模式加载preload |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ZeronoFreya
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://cn.electron-vite.org/guide/dev#electron-%E7%9A%84-esm-%E6%94%AF%E6%8C%81
esm 必须为非沙盒模式加载preload