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衣吠、重新執(zhí)行 “sh ./Scripts/bootstrap.sh”
————————————————
原文鏈接:https://blog.csdn.net/qq_33004389/article/details/89454505