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

[🐛 Bug]: Fails to install next-on-pages after selecting "yes" to installing next-on-pages #538

Closed
1 task done
jpoly1219 opened this issue Nov 11, 2023 · 4 comments
Closed
1 task done
Labels
bug Something isn't working question Further information is requested

Comments

@jpoly1219
Copy link

jpoly1219 commented Nov 11, 2023

next-on-pages environment related information

Does not create a output. Running on Powershell on Windows 11.

Description

image

When following the tutorial here: https://developers.cloudflare.com/pages/framework-guides/deploy-a-nextjs-site/#use-the-edge-runtime

After running npm create cloudflare@latest my-next-app -- --framework=next, it succeeds in creating the app. However, when I select yes to install next-on-pages, it tries to look up the root directory of my C drive, which seems problematic to me.

Reproduction

Running on Powershell on Windows 11, using node version 18.16.0

npm create cloudflare@latest my-next-app -- --framework=next

Select the following options:

image

Say yes to the prompt ├ Do you want to use the next-on-pages eslint-plugin?

Pages Deployment Method

None

Pages Deployment ID

No response

Additional Information

No response

Would you like to help?

  • Would you like to help fixing this bug?
@jpoly1219 jpoly1219 added the bug Something isn't working label Nov 11, 2023
@jpoly1219 jpoly1219 changed the title [🐛 Bug]: NextJS app fails to create after selecting "yes" to installing next-on-pages [🐛 Bug]: Fails to install next-on-pages after selecting "yes" to installing next-on-pages Nov 11, 2023
@dario-piotrowicz
Copy link
Member

Hi @jpoly1219 thanks a bunch for the issue 🙂

I think this is a problem with C3 and there's already a gh issue for it: cloudflare/workers-sdk#4282

There's actually also a PR to fix it: cloudflare/workers-sdk#4445

🙂

If you want we can keep this issue open for visibility until the C3 PR/issues above aren't merged/solved 🙂

@dario-piotrowicz dario-piotrowicz added the blocked by external This can't be currently solved because of external factors (Vercel/Next, Pages, etc...) label Nov 21, 2023
@jpoly1219
Copy link
Author

Thank you!

@dario-piotrowicz
Copy link
Member

@jpoly1219 The workers-sdk PR has been merged and the fix has been released 🙂

Could you please try running npm create cloudflare@latest my-next-app -- --framework=next again and let me know if it's all good now? 🙏

@dario-piotrowicz dario-piotrowicz added question Further information is requested and removed blocked by external This can't be currently solved because of external factors (Vercel/Next, Pages, etc...) labels Dec 1, 2023
@dario-piotrowicz
Copy link
Member

Closing due to the lack of response, and since I do think that this has been solved

@jpoly1219 if you still encounter this bug please let me know and we can reopen this issue and look into it 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants