-
Notifications
You must be signed in to change notification settings - Fork 27.7k
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
create-next-app: Build Error using next dev
v14.2 (ERR_UNSUPPORTED_ESM_URL_SCHEME
)
#64371
Comments
Same Hereeeee 😭 |
How does your font loading look like? I mean what do you have instead of this line from docs? // Font files can be colocated inside of `pages`
const myFont = localFont({ src: './my-font.woff2' }) Random suggestion (based on zero knowledge of what you’ve actually got): - const myFont = localFont({ src: "./my-font.woff2" })
+ const myFont = localFont({ src: new URL("./my-font.woff2", import.meta.url).toString() }) I haven’t tested it – my local fonts work OK on mac with |
This comment was marked as outdated.
This comment was marked as outdated.
Right; so your import is from |
After reading #63359 (comment), And then change the export from: export default config; to: module.exports = config; Works fine as a temporary solution. |
Just cloned the create-next-app as well, experiencing the same issue! |
faced this problem 10 min ago while creating a new project. |
This comment was marked as outdated.
This comment was marked as outdated.
I did exactly as you said, but I still came across a new error. However, I tried to create a new Next.js app without Tailwind CSS, and then I ran it normally. |
I am also getting error in global css. I am using windows. |
this fix works when running |
There is no next version 14 yet |
update Node.js v21.7.3 |
yes 14.1.0 don't have this issue |
I did the same thing as mentioned in the post , it did work for me thanks 👍 , hope this gets resolved soon |
Worked perfectly for me. Thanks a lot! |
This comment was marked as off-topic.
This comment was marked as off-topic.
After doing what #64371 commented, bug is fixed but tailwind is not working. No CSS styling is visible on the screen :(. |
Was experiencing the same issue! |
This comment was marked as off-topic.
This comment was marked as off-topic.
thanks a lot |
I had to update my nextjs. I cannot run after the new install I have installed nextjs, shadcn, Firebase for auth. IT is a bare minimum install. my next.config.js is: npm run dev
▲ Next.js 14.2.1
✓ Starting... |
I solve my problem |
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. |
EDIT: Temporary solution
EDIT: Already fixed in v14.2.1
Link to the code that reproduces this issue
https://codesandbox.io/p/devbox/falling-morning-j32gvz
To Reproduce
create-next-app
CLI with v14.2next dev
)Current vs. Expected behavior
Currently, when creating an app using
create-next-app
(default options selected), the build error shows up and throwsERR_UNSUPPORTED_ESM_URL_SCHEME
The new project should work as expected.
Provide environment information
Which area(s) are affected? (Select all that apply)
CLI (create-next-app)
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
I believe the issue is specific to Windows and I unfortunately cannot reproduce it on CodeSandbox.
The text was updated successfully, but these errors were encountered: