-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Support Nuxt/Nuxi #20336
Comments
Thanks for the report @birkskyum, do you happen to know if that is coming from some library? I believe I hit the same problem when checking support for latest SvelteKit (#17248 (comment)). Since the stack trace says it's coming from a file named |
Based on the sveltekit ticket, it sounds like it's related to tty, which is used in almost all of thes npm:create-x packages that nearly all the frameworks use. |
The error in prompt.mjs appear here, but what is wrong with the WriteStream i don't know:
|
If you want to try to create a smaller reproduction, SvelteKit uses |
Thank you @benmccann! |
I was able to reproduce the error using import { Prompt } from "npm:@clack/core"
new Prompt({render() {}}).prompt() > deno run --allow-read test.ts
error: Uncaught Error: Not implemented: net.Socket.prototype.constructor with fd option
at notImplemented (ext:deno_node/_utils.ts:9:9)
at new Socket (node:net:455:7)
at new WriteStream (node:tty:18:8)
at h.prompt (file:///C:/Users/ayame/AppData/Local/deno/npm/registry.npmjs.org/@clack/core/0.3.3/dist/index.mjs:9:693)
at file:///C:/Users/ayame/work/study/.../test.ts:3:27 |
In case anyone's interested about what's on line 9 column 693, it's: Which is defined as: This does indeed look the same as #6529 as you can see one of the comments there mentioning this library and API call specifically. |
Using normal npm installation create an app then try to use Warning Currently only basic package.json `scripts` are supported. Programs like `rimraf` or `cross-env` will not work correctly. This will be fixed in an upcoming release.
Task dev nuxt dev
Nuxt 3.7.4 with Nitro 2.6.3 9:15:39 AM
ERROR Cannot read properties of undefined (reading 'env') 9:15:40 AM
at data::3:25
at data::19:4
at evalModule (node_modules/.deno/jiti@1.20.0/node_modules/jiti/dist/jiti.js:1:255868)
at Object.jiti (node_modules/.deno/jiti@1.20.0/node_modules/jiti/dist/jiti.js:1:253796)
at resolveConfig (node_modules/.deno/@nuxt+kit@3.7.4/node_modules/c12/dist/index.mjs:280:24)
at loadConfig (node_modules/.deno/@nuxt+kit@3.7.4/node_modules/c12/dist/index.mjs:116:40)
at async loadNuxtConfig (node_modules/.deno/@nuxt+kit@3.7.4/node_modules/@nuxt/kit/dist/index.mjs:2530:18)
at async Object.run (node_modules/.deno/nuxt@3.7.4/node_modules/nuxi/dist/chunks/dev.mjs:174:25)
at async runCommand$1 (node_modules/.deno/nuxt@3.7.4/node_modules/nuxi/dist/shared/nuxi.9d864d83.mjs:1647:7)
at async runCommand$1 (node_modules/.deno/nuxt@3.7.4/node_modules/nuxi/dist/shared/nuxi.9d864d83.mjs:1638:11)
ERROR Cannot read properties of undefined (reading 'env')
|
Fixes denoland#21012 Closes denoland#20855 Fixes denoland#20890 Fixes denoland#20611 Fixes denoland#20336 Fixes `create-svelte` from denoland#17248 Fixes more reports here: - denoland#6529 (comment) - denoland#6529 (comment) - denoland#6529 (comment)
Tried to generate a repo for Nuxt, but got this:
The text was updated successfully, but these errors were encountered: