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 · 1 comment
Open

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

z1glr opened this issue Sep 29, 2024 · 1 comment
Labels
bug Something isn't working support Does enhance the experience without changing the icon generator

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
@sebinside
Copy link
Owner

Yes, @DerArkeN with #208 fixed this but caused the final non-debug build to fail as the files are included dynamically and thus not considered by the build. There are ways to statically force folders to be included in the build, however, I was not able to get it working prior to releasing v3, so I partially reverted it.

Nevertheless, I am still interested in a version that defaults to the Free version if the pro files are not included. So everyone is invited to have look at it. I failed in, e.g., altering the vite config file to include the folders no matter what, when running npm run build.

@sebinside sebinside added bug Something isn't working support Does enhance the experience without changing the icon generator labels Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working support Does enhance the experience without changing the icon generator
Projects
None yet
Development

No branches or pull requests

2 participants