延迟加载页面随机错误:错误错误:未捕获(承诺):无效链接: [英] Lazy load pages random error:ERROR Error: Uncaught (in promise): invalid link:

查看:17
本文介绍了延迟加载页面随机错误:错误错误:未捕获(承诺):无效链接:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我时不时会遇到以下错误.

I run into the following error every now and then.

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)

我不知道任何重现步骤,并且此错误根本不会导致任何问题应用程序运行正常并且菜单页显示正确.

I'm not aware of any steps to reproduce and this error is not causing any problem at all The app is working normally and the Menu Page is displayed correctly.

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" 使用.

I had checked my project and the menu page is only used by its IonicPage name "menu".

已经有一个离子论坛发布 但我已经在遵循建议的已接受解决方案,即为 IonicPage 注释命名.

There is already an ionic forum post but I am already following the proposed accepted solution which is about giving a name to the IonicPage annotation.

推荐答案

有时我也会遇到同样的事情.同样,我无法确定错误来自何处,因为它很少发生.看起来像应用脚本的错误,因为停止和启动离子服务"似乎可以解决问题.

Same thing happens to me sometimes. Likewise I was not able to determine where the error comes from, as it happens only rarely. Looks like a bug with the app scripts, as stopping and starting "ionic serve" seems to solve the issue.

这篇关于延迟加载页面随机错误:错误错误:未捕获(承诺):无效链接:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆