升级了一下ionic的版本后,突然提示下面的错误:
Runtime Error: webpackJsonP is not defined
Stack: @http://localhost:8100/build/main.js:1:1
原来是新版版里有一些变化,检查下面的代码,看看有没有引入vendor.js
<script src="build/polyfills.js"></script>
<!-- all code from node_modules directory is here -->
<script src="build/vendor.js"></script> // <-- I didn't see this in your link
<!-- The bundle js is generated during the build process -->
<script src="build/main.js"></script>
网友评论