expo / google-fonts

Use any of the 1000+ fonts (and their variants) from fonts.google.com in your Expo app.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't work with expo/next-adapter instructions

codinsonn opened this issue · comments

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)

commented

@codinsonn
Hey have you figured out a solution?

@codinsonn

Hey have you figured out a solution?

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

commented

@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?