我已经创建了一个包含ionic g page SignInPage
的页面,在我的主页中,我添加了一个检查,以验证是否存在存储(离子存储)变量&user 39用户登录&#39 ;并且应该显示索引页面或登录页面。
现在我收到错误,无法找到SignInPage,ionic serve
告诉我There are multiple entries in the deeplink config with the name of SignInPage
。
在sign-in.ts
我已将@IonicPage()
替换为@IonicPage({ name: 'SignInPage'})
,但这并没有帮助。 (根据:https://forum.ionicframework.com/t/there-are-multiple-entries-in-the-deeplink-config-with-the-segment-of-main-error-after-latest-update/107111)
我想我需要为骆驼外壳配置一些东西?我该如何解决这个问题?
答案 0 :(得分:0)
这似乎是一个缓存问题。重新运行ionic serve
之后,它就像我预期的那样工作。