ERROR in ./js/app.js Module pars

2019-11-20  本文已影响0人  陌椰_5702

webpack打包js文件报错 ERROR in ./js/app.js Module parse failed:/app.js Unexpected token

使用appium下自带的WebDriverAgent,一直在js文件下报错

ERROR in ./js/app.js

Module parse failed: /usr/local/lib/node_modules/appium/node_modules/_appium-xcuitest-driver@2.133.1@appium-xcuitest-driver/WebDriverAgent/Inspector/js/app.js Unexpected token (67:6)

解决办法:

1、修改Inspector下webpack.config.js文件

2、去掉babel-loader配置后的,“exclude: /node_modules/”

3、删除Inspector下node_modules文件夹

4、重新执行 “sh ./Scripts/bootstrap.sh”

————————————————

原文链接:https://blog.csdn.net/qq_33004389/article/details/89454505

上一篇下一篇

猜你喜欢

热点阅读