-
Creator 版本:3.8.2
-
目标平台: Chrome 浏览器
-
重现方式:默认配置打包构建,点击运行。
我将scriptss文件夹设置为Bundle之后,打包构建,就报错了。如果取消就没没有问题。
web报错:
index.html:1 Access to script at ‘chunks:///_virtual/Test.ts’ from origin ‘http://192.168.0.106:7458’ has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: chrome, chrome-extension, chrome-untrusted, data, http, https, isolated-app.
ios报错:
21:03:57 [DEBUG]: EventBus[Engine] has no listener found!
21:03:58 [ERROR]: JS: Error: Unable to instantiate chunks:///_virtual/Test.ts from chunks:///_virtual/load.ts, stack: Error: Unable to instantiate chunks:///_virtual/Test.ts from chunks:///_virtual/load.ts
at b. (src/system.bundle.js:1:4850)
at b. (src/system.bundle.js:1:7751)
at b.instantiate (src/system.bundle.js:1:6644)
at src/system.bundle.js:1:2254

