【发布时间】:2020-10-19 02:28:59
【问题描述】:
我不时遇到以下错误。
ERROR Error: Uncaught (in promise): invalid link:MenuPage
at d (polyfills.js:3)
at l (polyfills.js:3)
at Object.reject (polyfills.js:3)
at NavControllerBase._fireError (nav-controller-base.js:322)
at NavControllerBase._failed (nav-controller-base.js:310)
at nav-controller-base.js:365
at t.invoke (polyfills.js:3)
at Object.onInvoke (core.es5.js:4125)
at t.invoke (polyfills.js:3)
at n.run (polyfills.js:3)
at polyfills.js:3
at t.invokeTask (polyfills.js:3)
at Object.onInvokeTask (core.es5.js:4116)
at t.invokeTask (polyfills.js:3)
at n.runTask (polyfills.js:3)
我不知道任何重现步骤,并且此错误根本不会导致任何问题该应用程序运行正常,并且菜单页显示正确。
import { Component, ViewChild } from '@angular/core';
import { IonicPage, NavController, NavParams } from 'ionic-angular';
import { Nav, Platform } from 'ionic-angular';
@IonicPage({
name: "menu",
segment: "app"
}
)
@Component({
selector: 'page-menu',
templateUrl: 'menu.html'
})
export class MenuPage {}
我检查了我的项目,并且菜单页面仅由其 IonicPage 名称 "menu" 使用。
已经有一个离子论坛post,但我已经在关注建议的已接受解决方案,即为IonicPage 注释命名。
【问题讨论】:
标签: ionic3