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
    

      

 

  持續更新中...


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM