Closed SzilvasiPeter closed 1 week ago
Previously, there was an issue with fonts in a specific version of next.js, but it has been resolved: https://github.com/miurla/morphic/issues/16#issuecomment-2058410971 . Similar error reports also seem to be caused by the version of next.js: https://github.com/vercel/next.js/discussions/61886 In the current version, it seems to be fixed. It appears to occur under certain specific conditions.
I will not remove Google Fonts for this reason.
Somehow, I could not make it work by the Next.js version update. The only solution was the removal of the fonts in my (corporate network) end.
I will abandon the PR and adapt the code separately. In any case, thanks for the comment!
Thank you for understanding. If anything else comes up, please submit a bug report.
Is there an existing issue for this?
Vercel Runtime Logs
Current Behavior
Introduction
Probably this error occurs because I am using a workplace laptop, which blocks the communication of some websites. I tried with and without VPN, however the issue is present.
Workaround
For me, the workaround is to delete the Google font import and using the default font instead. The modification at the
app/layout.tsx
file:at the
app/layout.tsx
file:Stack trace
There are multiple Module not found error when importing the Google fonts:
Expected Behavior
The application compiles without any error.
Steps To Reproduce
main
branch environmentbun dev
and go to http://localhost:3000/Environment
Anything else?
Google font compile error: https://stackoverflow.com/q/74889692/10721627 Solution reference: https://stackoverflow.com/a/75476382/10721627