Error in url in file assets/sass/_fonts.scss

Post Reply
gkrit
Posts: 3
Joined: 15 Mar 2017, 15:31

12 May 2022, 16:23

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

cetincakiroglu
Posts: 65
Joined: 17 Dec 2021, 09:33

18 May 2022, 09:11

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.

cetincakiroglu
Posts: 65
Joined: 17 Dec 2021, 09:33

18 May 2022, 11: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

gkrit
Posts: 3
Joined: 15 Mar 2017, 15:31

18 May 2022, 12:40

Thanx for the response.

Additionally, it would be great if layout global style split into layout-seed.scss and demo.scss.
This structure helps the developing process and also the update process.

cetincakiroglu
Posts: 65
Joined: 17 Dec 2021, 09:33

18 May 2022, 14:06

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.

Post Reply

Return to “Barcelona - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest