Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler can't work with google font link (material theme) #1324

Open
MelBou opened this issue Feb 6, 2025 · 0 comments
Open

Compiler can't work with google font link (material theme) #1324

MelBou opened this issue Feb 6, 2025 · 0 comments

Comments

@MelBou
Copy link

MelBou commented Feb 6, 2025

Hi,
I upgraded my angular project to version 19. I upgraded bootstrap and bootswatch to version 5.3.3 as well.
Since then, I can't compile my project, I always get this error message :

`X [ERROR] Could not resolve "../../../node_modules/bootswatch/dist/materia||file:https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap"

    src/assets/styles/styles.scss:7:12:
      7 │ @import url("../../../node_modules/bootswatch/dist/materia||file:ht...`

If I change _bootswatch.scss code from :

`// Variables

$web-font-path: "https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" !default;
@if $web-font-path {
  @import url("#{$web-font-path}");
}`

to

`// Variables

$web-font-path: "https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" !default;
@if $web-font-path {
  @import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap");
}`

the problem is solved.

Am I missing something here ?
Thanks for your help !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant