用ionic 3開發也有一段時間了,現在總結下開發中遇到的報錯,以及解決辦法:
- 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是否有多寫')'
- ERROR DOMException: Failed to execute 'setAttribute' on 'Element': ')' is not a valid attribute name.
同上
-
Native: tried calling plugins, but the plugin is not installed.或者 Uncaught (in promise)): plugin_not_installed
我在app.component.ts文件中使用了一些方法(來自一些原生插件)在platform.ready()外面調用,將這寫方法調用寫在platform.ready()里面就ok了
-
EXCEPTION: No provider for NavController
參考https://github.com/driftyco/ionic/issues/5543
持續更新中...