`
wxinpeng
  • 浏览: 590535 次
  • 性别: Icon_minigender_1
  • 来自: 青岛
社区版块
存档分类
最新评论

Ionic 2: ReferenceError: webpackJsonp is not defined

阅读更多

I'm new to Ionic. I have started project with super template. But when I try to run the app in browser. It throws an error saying:

ReferenceError: webpackJsonp is not defined
    at http://localhost:8100/build/main.js:1:1

 

解决:

This is a breaking change in Ionic-App-Scripts

https://github.com/ionic-team/ionic-app-scripts/releases/tag/v2.0.0

src/index.html must be modified to include a new vendor script tag .

...
<body>

  <!-- Ionic's root component and where the app will load -->
  <ion-app></ion-app>

  <script src="cordova.js"></script>

  <!-- The polyfills js is generated during the build process -->
  <script src="build/polyfills.js"></script>

  <!-- all code from node_modules directory is here -->
  <script src="build/vendor.js"></script>

  <!-- The bundle js is generated during the build process -->
  <script src="build/main.js"></script>

</body>
...

 

分享到:
评论

相关推荐

    Mastering Ionic 2: The Definitive Guide [2017]

    Mastering Ionic 2: The Definitive Guide English | 2 Jan. 2017 | ASIN: B01MZ65N2N | 636 Pages | PDF (True) | 11.44 MB Mastering Ionic 2 takes you through working with the Ionic 2 framework on a step-...

    Mobile App Development with Ionic 2

    Mobile App Development with Ionic 2: Cross-Platform Apps with Ionic, Angular, and Cordova by Chris Griffith English | 10 Apr. 2017 | ASIN: B06Y5Q24B2 | 310 Pages | AZW3 | 2.93 MB Learn how to build ...

    Ionic.2.Cookbook.2nd.Edition.epub

    Leverage Ionic 2 and its exciting new features to create cutting edge real-time apps Work through simple recipes to address your problems directly and solve them effectively Get examples at each step ...

    Ionic : Hybrid Mobile App Development

    If you are a web developer who wants to build hybrid mobile app development using the Ionic framework, then this comprehensive course is best-suited for you. What You Will Learn Get to know about ...

    英文原版-Mobile App Development with Ionic 2 1st Edition

    Cross-Platform Apps with Ionic 2, Angular 2, and Cordova.With Early Release ebooks, you get books in their earliest form—the author's raw and unedited content as he or she writes—so you can take ...

    ionic4和ionic5创建login跳转到tabs

    在网上找了很长时间,但找到的ionic登陆页login跳转到tabs的方法在ionic4上基本都无效,后来终于找到了解决这个问题的办法,简单易行,前两天发表了一篇ionic4和ionic5创建login登陆页跳转到tabs方法的博客,现在写...

    Building Mobile Apps with Ionic 2 final2.0 (附项目源码)

    《构建移动应用 with Ionic 2 final2.0》是一份深度探讨使用Ionic 2框架开发移动应用程序的资源,其中包含了完整的项目源码供学习者参考。Ionic 2是一款基于Angular的开源框架,专为构建高性能的混合移动应用而设计...

    Aza-nido-dodecaboranes and -borates from Aza-closo-dodecaboranes by the Addition of Neutral or Anionic Bases: Mechanism

    Aza-nido-dodecaboranes and -borates from Aza-closo-dodecaboranes by the Addition of Neutral or Anionic Bases: Mechanism Aza-nido-dodecaboranes and -borates from Aza-closo-dodecaboranes by the ...

    ionic2 new demo

    本文将深入探讨基于`Ionic2`框架开发的Android应用示例,该示例被称为"Ionic2 new demo"。这个项目旨在帮助开发者快速掌握`Ionic2`框架,了解如何利用其特性构建功能丰富的移动应用程序,特别是涉及到下拉框...

    IonicProject:ionic租户管理系统

    【IonicProject:基于Ionic的租户管理系统】 在IT行业中,租户管理系统的开发是一个常见的需求,尤其是对于提供多用户服务的SaaS(Software as a Service)应用。`IonicProject: ionic租户管理系统`是一个使用Ionic...

    setup-ionic:使用CordovaIonic环境设置GitHub Actions工作流程

    使用Cordova / Ionic环境设置GitHub Actions工作流。 目前仅支持macos和ubuntu。 用法示例: - name: Use coturiv/setup-ionic uses: coturiv/setup-ionic@v1 with: java-version: 8 - name: Use coturiv/setup...

    使用Ionic2制作移动应用

    ### 使用Ionic2制作移动应用 #### 一、Ionic2基础知识概览 Ionic2是一个开源的框架,用于构建高性能的跨平台移动应用。它基于Angular2+ 和 Cordova/PhoneGap,利用HTML、CSS和JavaScript来开发原生感受的应用。本...

    ionic2微软官方查看天气demo

    【标题】"Ionic2微软官方查看天气Demo"是一款基于Ionic2框架开发的移动应用示例,主要用于展示如何在iOS和Android平台上构建一个实时查询天气的应用。这个Demo是微软官方提供的,意味着它遵循了最佳实践,并且经过了...

    building-with-ionic2:离子2

    使用Ionic 2构建跨平台应用程序Ionic和Angular团队一直在并行工作,以比以前的版本更加激动人心的方式扩展Ionic的性能。 我们将回顾Ionic 2的新功能,并使用针对多个平台的单个代码库逐步完成构建实用且高性能的应用...

    IonicApp:酒店导航应用

    2. `app/` - 应用的核心模块,可能包含主组件、路由配置等。 3. `pages/` - 可能包含酒店导航应用的各个页面,如地图页、搜索页、设置页等。 4. `services/` - 提供业务逻辑和数据处理的函数或类,如地图服务、导航...

Global site tag (gtag.js) - Google Analytics