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

An error occurred in next/font. #64393

Closed
Ajay01103 opened this issue Apr 12, 2024 · 9 comments
Closed

An error occurred in next/font. #64393

Ajay01103 opened this issue Apr 12, 2024 · 9 comments
Labels
bug Issue was opened via the bug report template. create-next-app Related to our CLI tool for quickly starting a new Next.js application. locked

Comments

@Ajay01103
Copy link

Link to the code that reproduces this issue

https://github.com/Ajay01103/Next-14.2.0

To Reproduce

1). start the the local development server
2). An error occurred in next/font.

Current vs. Expected behavior

I was trying the latest version of next js 14.2.0 after the installation finished and run the local development server the error appear which is like

An error occurred in next/font.
inside src\app\layout.tsx

Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'

image

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Home Single Language
  Available memory (MB): 15732
  Available CPU cores: 12
Binaries:
  Node: 20.12.1
  npm: N/A
  Yarn: N/A
  pnpm: 8.15.6
Relevant Packages:
  next: 14.2.0 // Latest available version is detected (14.2.0).
  eslint-config-next: 14.2.0
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.4.5
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

App Router, CLI (create-next-app)

Which stage(s) are affected? (Select all that apply)

next dev (local), next build (local), next start (local), Vercel (Deployed)

Additional context

I tested the next js 14.1.4 it just worked fine bu the latest version of next js 14.2.0 is throwing the error inside src\app\layout.tsx

image
image

@Ajay01103 Ajay01103 added the bug Issue was opened via the bug report template. label Apr 12, 2024
@github-actions github-actions bot added the create-next-app Related to our CLI tool for quickly starting a new Next.js application. label Apr 12, 2024
@AtharvaChobe
Copy link

Yes, I am also getting that same error

@ghimireaacs
Copy link

Getting same error, what a day to start learning NextJS. 😂

@byronlove111
Copy link

i'm getting it too lmaooo, waiting for a fix

@ElironB
Copy link

ElironB commented Apr 12, 2024

Also getting it

@Thanaen
Copy link

Thanaen commented Apr 12, 2024

Duplicate of #64371

@byronlove111
Copy link

Duplicate of #64371

thanks ! it worked

@timneutkens
Copy link
Member

Closing as duplicate of #64371

@wagstalos
Copy link

Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template. create-next-app Related to our CLI tool for quickly starting a new Next.js application. locked
Projects
None yet
Development

No branches or pull requests

8 participants