ERROR in ./js/app.js Module parse failed:/app.js Unexpected token

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/[email protected]@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

你可能感兴趣的:(ERROR in ./js/app.js Module parse failed:/app.js Unexpected token)