以下の内容はhttps://www.aruse.net/entry/2018/10/29/100308より取得しました。


Fix:ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'state' Error: Cannot match any routes

Angular で OAuth の処理を行っている際に、以下のエラーが出力されました。

ERROR Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'state' Error: Cannot match any routes. URL Segment: 'state' at Anonymous function (http://localhost:4200/vendor.js:66475:17) at CatchSubscriber.prototype.error (http://localhost:4200/vendor.js:90349:17) at Subscriber.prototype.error (http://localhost:4200/vendor.js:87088:9) at Subscriber.prototype.error (http://localhost:4200/vendor.js:87068:13) at Subscriber.prototype.error (http://localhost:4200/vendor.js:87088:9) at Subscriber.prototype.error (http://localhost:4200/vendor.js:87068:13) at Subscriber.prototype.error (http://localhost:4200/vendor.js:87088:9) at Subscriber.prototype.error (http://localhost:4200/vendor.js:87068:13) at TapSubscriber.prototype.error (http://localhost:4200/vendor.js:95082:9) at Subscriber.prototype.error (http://localhost:4200/vendor.js:87068:13)

これ、出力されているエラーの通りで、ルーティングの設定で state がないよと言われています。

なので、ルートの設定に'state'を追加してあげれば問題は解消します。

const routes: Routes = [
  {
    path: 'state',
    component: SomeComponent
  }
];



以上の内容はhttps://www.aruse.net/entry/2018/10/29/100308より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14