3.6.2引擎构建windows平台, 用vs2019打开工程后编译能成功,但是运行程序后报错, 看报错日志是执行脚本的main函数内的 require(“src/system.bundle.js”); 引起
报错信息:
15:21:51 [ERROR]: E/ ERROR: Uncaught Error: Failed to require file ‘src/system.bundle.js’, not found!, location: (no filename):0:0
STACK:
- [0]anonymous@(no filename):1
- [1]anonymous@main.js:57
15:21:51 [ERROR]: [ERROR] file E:\engine\3.6.2Custom\engine\native\cocos\application\CocosApplication.cpp: line 154
15:21:51 [ERROR]:
Uncaught Exception:
- location : (see stack)
- msg : Uncaught Error: Failed to require file ‘src/system.bundle.js’, not found!
- detail :
- [0]anonymous@(no filename):1 - [1]anonymous@main.js:57
15:21:51 [ERROR]: E/ ScriptEngine::evalString script (no filename), failed!
15:21:51 [ERROR]: E/ [ERROR] Failed to invoke require, location: E:\engine\3.6.2Custom\engine\native\cocos\bindings\manual\jsb_global.cpp:136
15:21:51 [ERROR]: E/ ScriptEngine::evalString catch exception:
15:21:51 [ERROR]: E/ ERROR: Uncaught SyntaxError: Unexpected end of JSON input, location: undefined:0:0
STACK:
- [0]anonymous@main.js:60
15:21:51 [ERROR]: [ERROR] file E:\engine\3.6.2Custom\engine\native\cocos\application\CocosApplication.cpp: line 154
15:21:51 [ERROR]:
Uncaught Exception:
- location : (see stack)
- msg : Uncaught SyntaxError: Unexpected end of JSON input
- detail :
- [0]anonymous@main.js:60
15:21:51 [ERROR]: E/ ScriptEngine::evalString script main.js, failed!