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

Fonts aren't loading in web #104

Open
sscssc11 opened this issue Oct 17, 2023 · 0 comments
Open

Fonts aren't loading in web #104

sscssc11 opened this issue Oct 17, 2023 · 0 comments

Comments

@sscssc11
Copy link

sscssc11 commented Oct 17, 2023

I'm using two fonts, inter and oswald. Everything works fine on native ios and android, but on web the fonts do not load. I don't know what the root cause is, but console logging the font says

Screenshot 2023-10-17 at 11 59 42 AM

But if I look in the file structure I don't see a media folder under static. Only "js", which has "bundle.js":

Screenshot 2023-10-17 at 12 01 18 PM

There is no error anywhere, and the font family is reference as such:

Screenshot 2023-10-17 at 12 29 58 PM

but it just loads some default serif font.

Is there something related to webpack that I don't know about? Running "expo export:web" does create a "static/media" folder with the correct files.

Expo: 49.0.10
@expo-google-fonts/inter: ^0.2.3
@expo-google-fonts/oswald: "^0.2.3
@expo/webpack-config: ^19.0.0

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