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

Doesn't work with expo/next-adapter instructions #53

Open
codinsonn opened this issue Jan 2, 2022 · 3 comments
Open

Doesn't work with expo/next-adapter instructions #53

codinsonn opened this issue Jan 2, 2022 · 3 comments

Comments

@codinsonn
Copy link

codinsonn commented Jan 2, 2022

Tried using this in next.js as described in docs here:

But even with next-fonts in my next.config, I still get load errors:

Expected font asset of type `string | FontResource | Asset` (number is not supported on web) instead got: null

@byCedric @EvanBacon Is there an up-to-date working example of using Expo + Next.js + (Google) Font Loading?

(I'll see if I can include a minimal repro soon, but for now just following the instructions seems to trigger the error / prevent font loading)

@iam-yan
Copy link

iam-yan commented Feb 19, 2022

@codinsonn
Hey have you figured out a solution?

@codinsonn
Copy link
Author

@codinsonn

Hey have you figured out a solution?

I'm afraid not, went with different setups for Next and React-Native in the end

@iam-yan
Copy link

iam-yan commented Feb 19, 2022

@codinsonn
Hey have you figured out a solution?

I'm afraid not, went with different setups for Next and React-Native in the end

Can you share some clues?

I am following the guide to use Next with Expo, however the font doesn't work...
Furthermore Next12 can't work neither. I guess it is because of WP5, because it works well when I rolled back to Next11...

How did you make them work?

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

2 participants