Ionic 2: ReferenceError: webpackJsonp is not defined

Literally just went through the same thing as you are. I added the vendor.js script BEFORE the main.js in /src/index.html – now it runs locally.

  <!-- The polyfills js is generated during the build process -->
  <script src="https://stackoverflow.com/questions/44988166/build/polyfills.js"></script>

  <script src="https://stackoverflow.com/questions/44988166/build/vendor.js"></script>

  <!-- The bundle js is generated during the build process -->
  <script src="https://stackoverflow.com/questions/44988166/build/main.js"></script>

Leave a Comment