zoukankan      html  css  js  c++  java
  • ionic 3 常见报错及解决办法

      用ionic 3开发也有一段时间了,现在总结下开发中遇到的报错,以及解决办法:

    1. ERROR DOMException: Failed to execute 'setAttribute' on 'Element': ')' is not a valid attribute name. 
      <button block ion-button class="m-0 buttom-btn" (click)="returnDeposit()" )>退押金</button>, 报错信息提示')'不是一个合法的属性,不能对dom元素执行setAttribute方法,这是检查下html是否有多写')'
      

        

    2. ERROR DOMException: Failed to execute 'setAttribute' on 'Element': ')' is not a valid attribute name.
      同上
      

        

    3. Native: tried calling plugins, but the plugin is not installed.或者 Uncaught (in promise)): plugin_not_installed

      我在app.component.ts文件中使用了一些方法(来自一些原生插件)在platform.ready()外面调用,将这写方法调用写在platform.ready()里面就ok了
      

        

    4. EXCEPTION: No provider for NavController

      参考https://github.com/driftyco/ionic/issues/5543
      

        

      持续更新中...

  • 相关阅读:
    otto-group-product-classification-challenge(Pytorch处理多分类问题)
    F1值
    win10 安装torch
    win10 安装 scrapy
    头条 街拍
    1029 Median
    欧拉回路
    Pre-Post
    Django 安装for Python3.4
    Python 安装for Windows
  • 原文地址:https://www.cnblogs.com/hanshuai/p/9489162.html
Copyright © 2011-2022 走看看