-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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 Next.JS #16679
Comments
Seeing this for
|
|
@iugo how is it same error? What command are you trying to run? |
run command same error, error info is |
This is caused because deno's os polyfill doesn't have a method called |
PRs trying to update chalk in next.js: |
Next.js doesn't seem to be using any of the chalk APIs that break without proto (those are specifically the ones with modifiers: bold, italic, e.t.c.) -- at least before it fails due to os.version() being missing, and only within |
Ran into this:
Related to #8261 |
$ deno --version
deno 1.31.0 (release, aarch64-apple-darwin)
v8 11.0.226.13
typescript 4.9.4
$ deno run -A --unstable npm:next
error: Uncaught Error: Not implemented: toDenoStdio pipe=string (ipc)
at notImplemented (internal:deno_node/polyfills/_utils.ts:7:11)
at toDenoStdio (internal:deno_node/polyfills/internal/child_process.ts:228:9)
at new ChildProcess (internal:deno_node/polyfills/internal/child_process.ts:104:24)
at spawn (internal:deno_node/polyfills/child_process.ts:102:12)
at Object.fork (internal:deno_node/polyfills/child_process.ts:93:12)
at setupFork (file://--/node_modules/.deno/next@13.2.1/node_modules/next/dist/cli/next-dev.js:401:51)
at nextDev (file:///--/node_modules/.deno/next@13.2.1/node_modules/next/dist/cli/next-dev.js:458:13)
|
Run deno run npm:create-next-app test --typescript and see how next trying to read input from stdin interferes with the Deno permission prompt. It's hard to see from the output, so you should try it yourself, but here is how it looks: $ deno run npm:create-next-app test --typescript
✅ Granted all read access.
✅ Granted all env access.
✅ Granted all sys access.
✅ Granted all write access.
? Would you like to use ESLint with this project? › No / Yes┌ ⚠️ Deno requests net access to "registry.npmjs.org".
├ Requested by `fetch()` API
├ Run again with --allow-net to bypass this prompt.
└ Allow? [y/n/A] (y = yes, allow; n = no, deny; A = allow all net permissions) > Now I can input whatever I like, the terminal is completely stuck. |
@KnorpelSenf I just tried this myself, it might be that the terminal wants a 'Yes' or 'No' for the question regarding the usage of ESLint before accepting input regarding '--allow-net' |
`$ deno run --allow-read --allow-env --allow-write npm:create-next-app test --typescript √ Would you like to use ESLint with this project? ... No / Yes Using npm. Initializing project with template: default Aborting installation. when install, has error |
hello, any update for this does it work properly? |
@lash0000 , no it doesn't work yet.
Results: ➜ deno task lint
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 lint next lint
error: Uncaught (in promise) ReferenceError: module is not defined
module.exports = nextConfig
^
at file:///Users/admin/repos/nextjs-app/next.config.js:4:1 |
omg, my reply didn't age well I think the NextJS now is focusing to make some support for Bun hmm what do you think? i'm about to use Deno for some reason but because of Bun's V1 release he make me mad to pick a choice haha what can I do for now since the NextJS still didn't make any support for Deno |
@lash0000 , bun is still really really buggy, not in a state most people would consider stable enough for a v1, and the same goes for the deno npm-compat, so my recommendation would be to save your energy dealing with this decision and all the bugs you'll hit, and just use node / npm/yarn/pnpm for another half year and re-evaluate the situation. |
ok, that was a simple thing I get it thanks |
A use case that would be useful for me is to deploy an app with nextjs for the desktop using the functionality of generating a static executable from deno (deno compile), I don't want to have to add all the nodejs files as a dependency in my app. If there is any similar functionality in nodejs. |
@littledivy since this issue was assigned to you, does this mean that you're working on this? |
Yes, this issue is not updated regularly but progress is being made. Most recent update is that Other closed issues are here: https://github.com/denoland/deno/issues?q=is%3Aissue+nextjs+is%3Aclosed |
Quick update: All of Next.js 14 is expected to work with We're testing out Next.js 15 (via canary) before it releases:
These fixes will be available next minor release (1.44) We're also working on |
Blocked on #19993 |
Tracking issue for supporting Next.JS.
The text was updated successfully, but these errors were encountered: