反馈时请提供以下信息:
–>
-
Creator 版本:3.8.6
-
目标平台: chrome
-
重现方式:本地测试
-
首个报错:
Uncaught SyntaxError: Unexpected token ‘:’ (at import-map.json:1:11)
index.js:24 Error: cc, http://dz35.com/ (SystemJS https://git.io/JvFET#8)
at system.bundle.js:1:8722
at w.resolve (system.bundle.js:1:8751)
at r.resolve (system.bundle.js:1:11916)
at system.bundle.js:1:3372
1、放到网站目录下,直接访问游戏的Index.html没有问题。
放到统一入口下,比如xxx.com/index.php?id=niuc_xxx,这时候后端程序(php)编写代码加载index.htm。由于在Index.htm里都是用的当前目录的相对目录,而统一入口是网站的根目录。所以我需要在index.html里把路径改为相对于根目录的路径。都改了之后(包括其它的JS文件里的路径),就会报错:
Uncaught SyntaxError: Unexpected token ‘:’ (at import-map.json:1:11)
网络请求到了application.js就停止了。
有没有大神遇见过。求解答

