Can't resolve '@vercel/turbopack-next/internal/font/google/font' sporadically on next dev --turbo.
#61886
Replies: 37 comments 40 replies
|
I faced same issue and resolved by installing latest version issued: |
|
I am also experiencing the same issue with the error message: Module not found: Can't resolve '@vercel/turbopack-next/internal/font/google/font'. I have already updated all packages to the latest versions. Does anyone know how to resolve this? Thank you! |
|
I am still facing the same issue, tried reinstalling and adding the latest next, but nothing works, Has anyone found a fix yet? |
|
Faced the same issue, I tried restarting the server and it worked for me. |
|
I have the issue. How can I fix it? |
|
Faced the same out of nowhere.
|
|
I'm experiencing the same issue, but I temporarily turned off the turbopack feature when running the application on the deployment side by removing --turbopack in package.json |
|
Installing the latest versions may not solve the problem. Following the next.js documentation seems to have solved the problem for now. |
|
I'm experiencing the same issue, I really love the behind architecture how Turbopack built but I really got mad because of this building error. Does anyone have any other suggestions? Thanks in advance! |
|
I just removed --turbopack in next dev scripts in package.json. Now it is working. But need to debug why it is failing with turbopack |
|
Same issue, can be reproduced in next |
|
The same problem was solved by restarting the server |
|
delete |
|
It's the use of Turbopack, Adding this to |
|
Yeah, it seems to be related to Turbo, and the Google font Inter is used in the sample Turbo code. If you don't want to remove https://github.com/vercel/turborepo/blob/main/examples/with-tailwind/apps/web/app/layout.tsx |
|
Yeah, it is related to Turbo, and the Google font Inter is used in the sample Turbo code. |
|
I installed it locally through npm though Idk if it opts me out from font optimizations: #77861 (comment) |
|
Can you give next@canary a try to check if this is fixed already? |
|
upgrade next "next": "^15.3.5" and remove --turbopack |
|
https://stackoverflow.com/questions/79458011/turbopack-issue-with-nextjs15-in-windows This error is often caused by corrupted native binaries. I fix it like this: Clean npm cachenpm cache clean --force Delete node_modules and .nextrm -rf node_modules .next Reinstall dependenciesnpm install this seems to work for me as mention in link |
|
I create the repo by 'npx create-next-app@latest', and I run 'npm run dev'. I get this error, but I fix this by doing the following things.
|
|
Why the problem persist till now? |
|
By me it was solved by disabling the ad blocker and web filter (VPN). |
|
how I solved it: 1- Installed geist.2- Modified my layout.tsx file like this:I hope this helps you :) |
|
updating to next 15.5.6 worked for me |
|
For me, it only works when I enable a VPN before starting the server. |
|
for latest next.js version, remove '--turbopack' already can't fix this bug, because next.js use turbopack as default. explicit change '--turbopack' to '--webpack' fix this issue for me (for now). |
|
In my case, the issue was caused when I capitalized the file extension on one of my fonts. I had: const h1FontFamily = localFont({
src: [
{
path: "../assets/font/AgencyFB/AGENCYB.TTF",
weight: "400",
style: "normal",
},
],
});and it threw the above error. Changing my code to: const h1FontFamily = localFont({
src: [
{
path: "../assets/font/AgencyFB/AGENCYB.ttf",
weight: "400",
style: "normal",
},
],
});resolved the error and allowed me to import my font. I also changed the file extension to lowercase, too. |




Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Summary
Keep getting this sporadically when I start my server, then I have to try and try again to restart it, until it finally works.
Additional information
Example
No response
All reactions