Replies: 1 comment
-
使用es语法导入模块 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
主进程目录除了index.js还有一些业务逻辑代码,需要在主进程引用并调用,npm run dev,在out目录里只有main\index.js, 导入提示找不到./folder/file.js模块。
这个问题可以简化为:主进程index.js里使用require引入的自定义module.export模块并没有被输出到out目录
请问是我放错位置吗?或缺少配置?理想情况,主进程目录所有被引用的业务逻辑代码应一起复制到out目录才能正常运行,
谢谢!
Beta Was this translation helpful? Give feedback.
All reactions