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

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

问题描述

我时不时地遇到以下错误。

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

已有一个离子论坛 post 但我已经按照提议的接受解决方案,即为<$ c $命名c> 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天全站免登陆