next/font/google suddenly requires weights
Unanswered
Mini Lop posted this in #help-forum
Mini LopOP
I have been using next/font/google without weights for months now and now suddenly the font won't load without adding weights. Even just adding an empty weights list fixes the issue.
This should not be necessary as Montserrat is a variable font (and it has been working like this since at least June).
This should not be necessary as Montserrat is a variable font (and it has been working like this since at least June).
7 Replies
variable fonts usealy mean that they can contain multiple sizes, in this case, it probability makes the most sense to add the list of sizes so you can put the ones that you really need (a way to kinda make you think more about what's needed and slightly reduces bundle size)
hmm one could think that this pr would have done what you want: https://github.com/vercel/next.js/pull/43036
so i think it could be a bug then, and just to check, you are on latest version?
Mini LopOP
I'm on 13.4.4
The strange thing is that it just stopped working while I was coding (no update or anything)
and then it also didn't work anymore when I deployed to Vercel
Maybe google changed their API?