參考文章:https://www.cnblogs.com/huangenai/p/7444318.html
ionic更新後發現 ionic serve 跑起來項目出現一下錯誤:
Runtime Error: webpackJsonP is not defined
Stack: @http://localhost:8100/build/main.js:1:1
你可以參考這樣做:
rm -rf node_modules
<script src="build/vendor.js"></script>在index.html中添加
npm install -g [email protected]
npm install @ionic/[email protected] --save-dev
npm install [email protected] --save
npm upgrade 用于更新所有子產品。
具體關于在index.html添加vendor.js參考官網:https://gist.github.com/anditola/ab8c0d1752d1a6f6106076dc98e05216