CocosCreator 2.4.7 构建发布报错

  • Creator 版本:2.4.7

  • 目标平台:Chrome

  • 重现方式:暂无

  • 首个报错:
    Build Failed: Error: Unexpected token: operator (?)
    at F:\CocosDashboard\resources.editors\Creator\2.4.7\resources\app.asar\editor\core\gulp-build.ccc:1:28496
    at Gulp. (F:\CocosDashboard\resources.editors\Creator\2.4.7\resources\app.asar\editor\core\gulp-build.ccc:1:28552)
    at Object.onceWrapper (events.js:422:26)
    at Gulp.emit (events.js:315:20)
    at Gulp.emit (domain.js:467:12)
    at Object.error (F:\CocosDashboard\resources.editors\Creator\2.4.7\resources\app.asar\node_modules\undertaker\lib\helpers\createExtensions.js:61:10)
    at handler (F:\CocosDashboard\resources.editors\Creator\2.4.7\resources\app.asar\node_modules\now-and-later\lib\mapSeries.js:47:14)
    at f (F:\CocosDashboard\resources.editors\Creator\2.4.7\resources\app.asar\node_modules\once\once.js:25:25)
    at f (F:\CocosDashboard\resources.editors\Creator\2.4.7\resources\app.asar\node_modules\once\once.js:25:25)
    at tryCatch (F:\CocosDashboard\resources.editors\Creator\2.4.7\resources\app.asar\node_modules\async-done\index.js:24:15)
    at F:\CocosDashboard\resources.editors\Creator\2.4.7\resources\app.asar\editor\lib\builder\index.ccc:1:4014
    at wrapper (F:\CocosDashboard\resources.editors\Creator\2.4.7\resources\app.asar\node_modules\async\dist\async.js:272:20)
    at next (F:\CocosDashboard\resources.editors\Creator\2.4.7\resources\app.asar\node_modules\async\dist\async.js:4584:24)
    at F:\CocosDashboard\resources.editors\Creator\2.4.7\resources\app.asar\node_modules\async\dist\async.js:325:20
    at F:\CocosDashboard\resources.editors\Creator\2.4.7\resources\app.asar\editor\core\gulp-build.ccc:1:27288
    at F:\CocosDashboard\resources.editors\Creator\2.4.7\resources\app.asar\editor\core\gulp-build.ccc:1:5999
    at Gulp. (F:\CocosDashboard\resources.editors\Creator\2.4.7\resources\app.asar\editor\core\gulp-build.ccc:1:28390)
    at Object.onceWrapper (events.js:422:26)
    at Gulp.emit (events.js:315:20)

编辑器预览是没问题的

有些ts的?操作符好像编译不了。

:disappointed_relieved:关键是也没定位到ts代码的位置…这个怎么排查修改呢

解决了吗老哥,我也遇到了同样的问题

环境搭建了吗

打包其他项目都正常

我找到问题了,检查一下你的插件脚本