the url in file assets/sass/_fonts.scss is incorrect.
url('../fonts/roboto-v20-latin-ext_latin-regular.woff2')
there is no fonts directory in the parent folder.
the directory fonts resides inside assets/layout path.
I think the path should be corrected in the teamplte structure.
The fonts folder should be moved one foldr up, in the assets directory
Error in url in file assets/sass/_fonts.scss
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Posts: 130
- Joined: 17 Dec 2021, 09:33
Hi,
Thanks for your report, error happens because of the wrong path.
We'll check and fix it in the next update.
Until then, you can use "'../layout/fonts/......'" this url for all font urls in the _fonts.scss file.
Regards.
Thanks for your report, error happens because of the wrong path.
We'll check and fix it in the next update.
Until then, you can use "'../layout/fonts/......'" this url for all font urls in the _fonts.scss file.
Regards.
-
- Posts: 130
- Joined: 17 Dec 2021, 09:33
Hi,
Additionally,
1-) Could you please share your folder tree as a screenshot?
2-) Do you have any problems after serving the project with ng serve?
I assume in your case, fonts are not loading and you should see the default browser font after serving the project.
Regards
Additionally,
1-) Could you please share your folder tree as a screenshot?
2-) Do you have any problems after serving the project with ng serve?
I assume in your case, fonts are not loading and you should see the default browser font after serving the project.
Regards
-
- Posts: 130
- Joined: 17 Dec 2021, 09:33
Hi,
We checked the paths again, weird but it seems that the problem is caused by IDE.
When we checked on Visual Studio Code, we got an error message that the file does not exist even though the file exists in the same exact path.
On the other hand, when we checked on WebStorm (JetBrains) everything is okay and IDE can find and open the font file without any path changes.
Besides, if the fonts folder does not exist, we cannot see fonts on live preview but we can.
Problem strangely caused by IDE. If you're using Visual Studio Code please use the solution above in the first comment.
Regards.
We checked the paths again, weird but it seems that the problem is caused by IDE.
When we checked on Visual Studio Code, we got an error message that the file does not exist even though the file exists in the same exact path.
On the other hand, when we checked on WebStorm (JetBrains) everything is okay and IDE can find and open the font file without any path changes.
Besides, if the fonts folder does not exist, we cannot see fonts on live preview but we can.
Problem strangely caused by IDE. If you're using Visual Studio Code please use the solution above in the first comment.
Regards.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 13 guests