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 pages fails to deploy #7577

Closed
michaelpayne02 opened this issue Dec 18, 2024 · 1 comment · Fixed by #7583
Closed

🐛 BUG: Wrangler pages fails to deploy #7577

michaelpayne02 opened this issue Dec 18, 2024 · 1 comment · Fixed by #7583
Labels
bug Something that isn't working regression Break in existing functionality as a result of a recent change

Comments

@michaelpayne02
Copy link

Which Cloudflare product(s) does this pertain to?

Pages, Wrangler

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

3.97.0 [Wrangler]

What version of Node are you using?

Deno 2.1.4

What operating system and version are you using?

Mac Sequoia 15.2

Describe the Bug

Observed behavior

When deploying to pages via npx wrangler pages deploy dist --project-name=project, wrangler fails at some point when configuring unenv. Not sure why it's trying to load the package.json from the dist subdirectory when it's actually in the parent folder.

Expected behavior

Wrangler should upload pages projects.

Steps to reproduce

Please provide the following:

  • Try to upload any pages project with wrangler deploy

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

✘ [ERROR] ENOTDIR: not a directory, open '.../node_modules/unenv-nightly/dist/index.cjs/package.json'

@michaelpayne02 michaelpayne02 added the bug Something that isn't working label Dec 18, 2024
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Dec 18, 2024
@michaelpayne02 michaelpayne02 changed the title 🐛 BUG: ✘ [ERROR] ENOTDIR: not a directory, open 'node_modules/unenv-nightly/dist/index.cjs/package.json' 🐛 BUG: Wrangler pages fails to deploy Dec 18, 2024
@penalosa penalosa added the regression Break in existing functionality as a result of a recent change label Dec 18, 2024
@penalosa
Copy link
Contributor

Thanks for reporting this! We're investigating—in the meantime downgrading to Wrangler 3.96.0 should be a workaround

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 regression Break in existing functionality as a result of a recent change
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants