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

bug: Fonts Brokren in Next 15 #2042

Open
IzaanAnwar opened this issue Dec 10, 2024 · 2 comments
Open

bug: Fonts Brokren in Next 15 #2042

IzaanAnwar opened this issue Dec 10, 2024 · 2 comments

Comments

@IzaanAnwar
Copy link

Provide environment information

"initVersion": "7.38.1"

System:
OS: Linux 6.11 Manjaro Linux
CPU: (4) x64 11th Gen Intel(R) Core(TM) i3-1115G4 @ 3.00GHz
Memory: 2.14 GB / 7.47 GB
Container: Yes
Shell: 5.9 - /usr/bin/zsh
Binaries:
Node: 22.2.0 - ~/.nvm/versions/node/v22.2.0/bin/node
Yarn: 1.22.22 - /usr/bin/yarn
npm: 10.7.0 - ~/.nvm/versions/node/v22.2.0/bin/npm
pnpm: 9.8.0 - ~/.local/share/pnpm/pnpm
bun: 1.1.17 - ~/.bun/bin/bun

Describe the bug

Fonts installation is Broken in Next js15.
I just create the app, and ran pnpm dev, first I got an error with turbopack saying see next dev for more information, but nothing on console so I just removed the turbo flag form dev command.

After that I am not able to get the fonts thing working.

Failed to compile

node_modules/.pnpm/[email protected][email protected][email protected][email protected][email protected]_/node_modules/geist/dist/sans.js
An error occurred in `next/font`.

Error: Cannot find module '....../whatevermyapp/node_modules/.pnpm/[email protected]/node_modules/@jridgewell/gen-mapping/dist/gen-mapping.umd.js'

I then tried google and local fonts with next/font/google and next/font/local, and nothing worked.

Reproduction repo

null

To reproduce

pnpm create t3-app@latest some-app

Additional information

image

@Ollebolle
Copy link

@IzaanAnwar If you need a quick fix you can try downgrading: "@jridgewell/gen-mapping": "0.3.5", manually. Also, make sure to remove node_modules and lock file(s).

@IzaanAnwar
Copy link
Author

So I tried to create a Normal nextjs app and it seems this error is there too.

Might be specific to my system. But still keeping the issue open, so that if others encounter the same, maybe someone can help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants