Ionic:深度链接配置中有多个条目与段

时间:2018-05-27 17:11:43

标签: ionic-framework ionic3

我使用离子3.一切都运作良好,直到现在。当我运行命令ionic serve时。我收到了这个错误:

Error: There are multiple entries in the deeplink config with the segment of player
    at BuildError.Error (native)
    at new BuildError (/projects/igamers/app/node_modules/@ionic/app-scripts/dist/util/errors.js:16:28)
    at /projects/igamers/app/node_modules/@ionic/app-scripts/dist/deep-linking.js:57:21

如何解决?

1 个答案:

答案 0 :(得分:0)

您似乎有多个@IonicPage具有相同的segment

细分名称应该是唯一的。如果您知道不提供segment@IonicPage的{​​{1}} name就会segment

@IonicPage({
  name: 'my-page',
  segment: 'some-path'
})