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

Unable to find asset "$web-font-path" #1558

Open
lxregistry opened this issue Jan 28, 2025 · 8 comments · May be fixed by #1567
Open

Unable to find asset "$web-font-path" #1558

lxregistry opened this issue Jan 28, 2025 · 8 comments · May be fixed by #1567

Comments

@lxregistry
Copy link

WARNING [asset_mapper] Unable to find asset "$web-font-path" referenced in "/var/www/vhosts/mydomain.com/assets/styles/bootswatch/_bootswatch.scss". The file "/var/www/vhosts/mydomain.com/assets/styles/bootswatch/$web-font-path" does not exist.

@xabbuh
Copy link
Member

xabbuh commented Jan 29, 2025

Please provide the steps that you did to end up with this error.

@lxregistry
Copy link
Author

php bin/console importmap:update
php bin/console asset-map:compile

@xabbuh
Copy link
Member

xabbuh commented Jan 29, 2025

Did you modify any files of the demo?

@lxregistry
Copy link
Author

Did you modify any files of the demo?

no

@lxregistry
Copy link
Author

replace this line:

@import url($web-font-path);

with:

`@import url("#{$web-font-path}");`

@xabbuh
Copy link
Member

xabbuh commented Jan 29, 2025

I cannot reproduce this. Please post the output of both commands.

@lxregistry
Copy link
Author

I cannot reproduce this. Please post the output of both commands.

Image

@idawson-gl
Copy link

replace this line:

@import url($web-font-path);

with:

`@import url("#{$web-font-path}");`

this worked for me as well.

@rosier rosier linked a pull request Mar 10, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

3 participants