React Native bundling: SyntaxError: Unexpected token: operator (*)
React Native bundling: SyntaxError: Unexpected token: operator (*)
当我 运行 尝试将我的应用与以下内容捆绑时:
react-native bundle --platform ios --dev false \
--entry-file index.ios.js --bundle-output iOS/main.jsbundle
我收到以下错误,没有其他详细信息:
SyntaxError: Unexpected token: operator (*)
对于它的价值,这有效(--dev true
):
react-native bundle --platform ios --dev true \
--entry-file index.ios.js --bundle-output iOS/main.jsbundle
我最好的猜测是问题出在 UglifyJS 步骤的某处,可能与以下相关:
https://github.com/mishoo/UglifyJS2/issues/1199
有什么建议吗?欢迎就在哪里进行更深入的研究提出建议!谢谢!
我们找到了行号:
./node_modules/.bin/esvalidate --formatter=sublime.js ios/main.jsbundle
问题是 **
ES6 运算符的使用。恢复为 Math.pow()
。
当我 运行 尝试将我的应用与以下内容捆绑时:
react-native bundle --platform ios --dev false \
--entry-file index.ios.js --bundle-output iOS/main.jsbundle
我收到以下错误,没有其他详细信息:
SyntaxError: Unexpected token: operator (*)
对于它的价值,这有效(--dev true
):
react-native bundle --platform ios --dev true \
--entry-file index.ios.js --bundle-output iOS/main.jsbundle
我最好的猜测是问题出在 UglifyJS 步骤的某处,可能与以下相关:
https://github.com/mishoo/UglifyJS2/issues/1199
有什么建议吗?欢迎就在哪里进行更深入的研究提出建议!谢谢!
我们找到了行号:
./node_modules/.bin/esvalidate --formatter=sublime.js ios/main.jsbundle
问题是 **
ES6 运算符的使用。恢复为 Math.pow()
。