在开发时开启ES6转ES5,运行没问题,提交发布之后不能运行
发布于 5 年前 作者 molei 992 次浏览 来自 问答

调用了wxParse,本地开发时开启了ES6转ES5,开发正常,提交发布之后,不能正常打开页面。报错信息:

wxParse.js:15 Uncaught SyntaxError: Unexpected token import
WAService.js:9 Uncaught Error: module “wxParse/wxParse.js” is not definedrequire @ WAService.js:9(anonymous function) @ WAService.js:9(anonymous function) @ comdes.js:2require @ WAService.js:9(anonymous function) @ comdes.js:106
appservice:28 Fri Aug 04 2017 10:04:51 GMT+0800 (中国标准时间) page 编译错误
appservice:29  pages/comdes/comdes 出现脚本错误或者未正确调用 Page()(anonymous function) @ appservice:29
business.js:26 Uncaught SyntaxError: Unexpected token )
appservice:34 Fri Aug 04 2017 10:04:51 GMT+0800 (中国标准时间) page 编译错误
appservice:35  pages/business/business 出现脚本错误或者未正确调用 Page()(anonymous function) @ appservice:35
WAService.js:9 Uncaught Error: module “wxParse/wxParse.js” is not definedrequire @ WAService.js:9(anonymous function) @ WAService.js:9(anonymous function) @ projectDetils.js:2require @ WAService.js:9(anonymous function) @ projectDetils.js:29
appservice:46 Fri Aug 04 2017 10:04:51 GMT+0800 (中国标准时间) page 编译错误
appservice:47  pages/projectDetils/projectDetils 出现脚本错误或者未正确调用 Page()

回到顶部