Error: { Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'fontawesome-webfont.woff2'

女生的网名这么多〃 提交于 2019-12-11 01:58:36

问题


After searching a lot I'm still not able to fix this error in my SSR angular project:

Node Express server listening on http://localhost:4000 ERROR Something went wrong please try again later! ERROR { Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment: 'fontawesome-webfont.woff2' Error: Cannot match any routes. URL Segment: 'fontawesome-webfont.woff2'

__zone_symbol__value: Error: Cannot match any routes. URL Segment: 'fontawesome-webfont.woff2'

And a lot more of error like above:

As per discussion here I've tried a lot of changes to my font-awesome import but not successful in removing the error.

I've tried changing

$fa-font-path: "../../node_modules/font-awesome/fonts";
@import "../../node_modules/font-awesome/scss/font-awesome.scss";

To

$fa-font-path: "../../node_modules/font-awesome/fonts";
@import "~font-awesome/scss/font-awesome.scss";

And

$fa-font-path: "~font-awesome/fonts";
@import "~font-awesome/scss/font-awesome.scss";

As well but same error persists. My configuration is same as this project

来源:https://stackoverflow.com/questions/51884009/error-error-uncaught-in-promise-error-cannot-match-any-routes-url-segme

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!