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

Can't find .css files with Font Awesome 6 Free #248

Open
z1glr opened this issue Sep 29, 2024 · 0 comments
Open

Can't find .css files with Font Awesome 6 Free #248

z1glr opened this issue Sep 29, 2024 · 0 comments

Comments

@z1glr
Copy link

z1glr commented Sep 29, 2024

I'm (still) experiencing a similar problem as in #207

[plugin:vite:import-analysis] Failed to resolve import "../fonts/fontawesome/css/sharp-light.min.css" from "src/main.ts". Does the file exist?

Somehow the checks implemented by #208 don't seem to work. I tried changing the fontAwesomeVersionInfo object in model/versions.ts to

fontAwesomeVersionInfo = {
  fontFamilyBase: 'Font Awesome 6',
  fontVersion: '6.6.0',
  fontLicense: 'Free'
}

but this doesn't help either. Replacing the if-statement in main.ts with

...
if (false) {
...

does work however.

Reproduce

  1. Delete the fonts/fontawesome folder
  2. Download font awesome free for web Download
  3. Paste in the folders as stated in the README
  4. npm run dev
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