-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
deno run -A npm:create-next-app -e hello-world
does not work
#26383
Labels
bug
Something isn't working correctly
node compat
upstream
Changes in upstream are required to solve these issues
Comments
Caused by use of non-standard try {
repoUrl = new URL(example)
} catch (error: unknown) {
const err = error as Error & { code: string | undefined }
if (err.code !== 'ERR_INVALID_URL') {
console.error(error)
process.exit(1)
}
} |
littledivy
added a commit
to littledivy/next.js
that referenced
this issue
Oct 18, 2024
This patch updates the error check for example URLs in `create-next-app` to use TypeError instead of `error.code`. `error.code` is a non-standard property present in Node.js, even for Web APIs like URL. This fixes `create-next-app -e hello-world` on Deno. Ref denoland/deno#26383
Opened vercel/next.js#71473 |
It's approved now, just need to fix the failed test |
ijjk
pushed a commit
to vercel/next.js
that referenced
this issue
Jan 27, 2025
This patch updates the error check for example URLs in `create-next-app` to use TypeError instead of `error.code`. `error.code` is a non-standard property present in Node.js, even for Web APIs like URL. This fixes `create-next-app -e hello-world` on Deno. Ref denoland/deno#26383
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
bug
Something isn't working correctly
node compat
upstream
Changes in upstream are required to solve these issues
Version: Deno 2.0.2
Error:
The text was updated successfully, but these errors were encountered: