Creator 版本:2.4.2
平台:web, 安卓
index.653e0.js:11 Uncaught Error: Cannot find module ‘readline’
at s (index.653e0.js:11)
at index.653e0.js:20
at Errors.ts:22
at Errors.ts:22
at Object. (Errors.ts:22)
at Object.window.__require.7…/algo (Errors.ts:22)
at s (index.653e0.js:18)
at index.653e0.js:20
at Object.window.__require.GameLogic…/gutils (GameLogic.ts:2)
at s (index.653e0.js:18)
s @ index.653e0.js:11
(anonymous) @ index.653e0.js:20
(anonymous) @ Errors.ts:22
(anonymous) @ Errors.ts:22
(anonymous) @ Errors.ts:22
window.__require.7…/algo @ Errors.ts:22
s @ index.653e0.js:18
(anonymous) @ index.653e0.js:20
window.__require.GameLogic…/gutils @ GameLogic.ts:2
s @ index.653e0.js:18
(anonymous) @ index.653e0.js:20
window.__require.Game…/common/Errors @ Game.ts:4
s @ index.653e0.js:18
e @ index.653e0.js:26
(anonymous) @ index.653e0.js:28
index.89c3e.js:11 Uncaught Error: Cannot find module ‘…/…/prefabs/pb_DecorationItem’
at s (index.89c3e.js:11)
at index.89c3e.js:20
at Object.window.__require.ui_decorations…/…/common/Game (ui_decorations.ts:12)
at s (index.89c3e.js:18)
at e (index.89c3e.js:26)
at index.89c3e.js:28
在编辑器调试是正常的,一旦发布就出现了这个require问题,
项目是使用typescript写的
我在想是不是因为2.4版本包的机制,脚本不能放在resource文件夹中