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

Issue with getting next.js app running. #238

Open
Reselence opened this issue Sep 7, 2021 · 6 comments
Open

Issue with getting next.js app running. #238

Reselence opened this issue Sep 7, 2021 · 6 comments

Comments

@Reselence
Copy link

Firstly when running npm i, I always get WARNs that some tarball data seems to be corrupted, and that it's trying again, but nothing happens.

If I run it again I get Cannot read property 'stdin' of undefined.

Finally running npm run dev produces the following error: npm ERR! command doesn't exist or is not supported: next dev

Could anyone point me in the right direction please? I'm on the iPadOS 15 beta on the latest test flight.

Thank you.

@ZicklePop
Copy link

Same issue. When I try to just install Next I get an issue where Node is too old of a version so I'm wondering if #216 will help this too.

@luni-moon
Copy link

Same issue. When I try to just install Next I get an issue where Node is too old of a version so I'm wondering if #216 will help this too.

Next.js requires NODEJS version 12.22.0 (Reference: Next.js Documentation), whereas Code App runs NODEJS version 12.19.0 (Check settings in the Code App for reference). Which means @bummoblizard needs to update NODEJS in the app.

@truongvinht
Copy link

I think it also depends on which Next.js version is expected. play.js also runs an old version of next.js 9.3.5. But Code App doesn't. I was really hoping to switch to Code App. But it seems I still need to stick with play.js

@bummoblizard
Copy link
Member

In that case, installing next.js 9.3.5 through npm should work. Next is not included in the app bundle.

I think it also depends on which Next.js version is expected. play.js also runs an old version of next.js 9.3.5. But Code App doesn't. I was really hoping to switch to Code App. But it seems I still need to stick with play.js

@ZicklePop
Copy link

ZicklePop commented Jan 16, 2022

The current LTS version of Node is 16, so it feels like Code should keep up with that instead of downgrading. Next is currently at version 12, so to go to 9 is a pretty big downgrade.

@bummoblizard
Copy link
Member

The current LTS version of Node is 16, so it feels like Code should keep up with that instead of downgrading. Next is currently at version 12, so to go to 9 is a pretty big downgrade.

I agree. Currently we are on the same version as play.js. Unfortunately porting NodeJS to iOS presents a number of challenges as discussed here: #328

Since codesandbox acquired play.js, there's some hope they will work on porting Node 12 to iOS and possibly open source it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants