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: Wrangler Init Error During Adding the Cloudflare Pages adapter #4342

Closed
Dqgs opened this issue Nov 3, 2023 · 1 comment · Fixed by #4445
Closed

🐛 BUG: Wrangler Init Error During Adding the Cloudflare Pages adapter #4342

Dqgs opened this issue Nov 3, 2023 · 1 comment · Fixed by #4445
Labels
bug Something that isn't working c3 Relating to C3 (create-cloudflare) package

Comments

@Dqgs
Copy link

Dqgs commented Nov 3, 2023

Which Cloudflare product(s) does this pertain to?

Other

What version(s) of the tool(s) are you using?

3.15.0

What version of Node are you using?

v20.9.0

What operating system are you using?

Windows

Describe the Bug

when trying to create a new project with the template of svelte or any other template such as nextjs it will error at the adding cloudflare page adapters

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

`wrangler init
⛅️ wrangler 3.15.0

Using npm as package manager.
▲ [WARNING] The init command is no longer supported. Please use npm create cloudflare\@2 instead.

The init command will be removed in a future version.

Running npm create cloudflare\@2...

using create-cloudflare version 2.6.2

╭ Create an application with Cloudflare Step 1 of 3

├ In which directory do you want to create your application?
│ dir ./nameless-dust-67aa

├ What type of application do you want to create?
│ type Website or web app

├ Which development framework do you want to use?
│ framework Next

√ Would you like to use TypeScript? ... No / Yes
√ Would you like to use ESLint? ... No / Yes
√ Would you like to use Tailwind CSS? ... No / Yes
√ Would you like to use src/ directory? ... No / Yes
√ Would you like to use App Router? (recommended) ... No / Yes
√ Would you like to customize the default import alias? ... No / Yes
Creating a new Next.js app in C:\Users\name\OneDrive\Desktop\asdasasddasdasasdasdasdasdasd\nameless-dust-67aa.

Using npm.

Initializing project with template: app-tw

Installing dependencies:

  • react
  • react-dom
  • next
  • typescript
  • @types/react
  • @types/node
  • @types/react-dom
  • tailwindcss
  • postcss
  • autoprefixer
  • eslint
  • eslint-config-next

added 330 packages, and audited 331 packages in 11s

116 packages are looking for funding
run npm fund for details
found 0 vulnerabilities
Initialized a git repository.

A new version of create-next-app is available!
You can update by running: npm i -g create-next-app

╭ Configuring your application for Cloudflare Step 2 of 3

├ Created an example API route handler

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

├ Adding the Cloudflare Pages adapter
│ npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:@cloudflare\next-on-pages@1/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:@cloudflare\next-on-pages@1\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in: C:\Users\name\AppData\Local\npm-cache_logs\2023-11-03T20_57_47_020Z-debug-0.log


Error: npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path C:@cloudflare\next-on-pages@1/package.json
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, open 'C:@cloudflare\next-on-pages@1\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in: C:\Users\name\AppData\Local\npm-cache_logs\2023-11-03T20_57_47_020Z-debug-0.log

npm ERR! code 1
npm ERR! path C:\Users\name\OneDrive\Desktop\asdasasddasdasasdasdasdasdasd
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c create-cloudflare

npm ERR! A complete log of this run can be found in: C:\Users\name\AppData\Local\npm-cache_logs\2023-11-03T20_57_16_170Z-debug-0.log

✘ [ERROR] Command failed with exit code 1: npm create cloudflare@2

If you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose

C:\Users\name\OneDrive\Desktop\asdasasddasdasasdasdasdasdasd>wrangler version
⛅️ wrangler 3.15.0

C:\Users\name\OneDrive\Desktop\asdasasddasdasasdasdasdasdasd>node -v
v20.9.0`

@Dqgs Dqgs added the bug Something that isn't working label Nov 3, 2023
@Dqgs Dqgs changed the title 🐛 BUG: 🐛 BUG: Wrangler Init Error During Adding the Cloudflare Pages adapter Nov 3, 2023
@dario-piotrowicz dario-piotrowicz added the c3 Relating to C3 (create-cloudflare) package label Nov 4, 2023
@1000hz
Copy link
Contributor

1000hz commented Nov 21, 2023

Thanks for the report! This has been reported a few times, so I'm gonna consolidate some issues and close this ticket as a duplicate of #4425, to be fixed by #4445.

@1000hz 1000hz closed this as not planned Won't fix, can't repro, duplicate, stale Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working c3 Relating to C3 (create-cloudflare) package
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants