-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
chore: Debugging CF deployments #439
Conversation
|
built with Refined Cloudflare Pages Action⚡ Cloudflare Pages Deployment
|
I'll be documenting this frustrating issue here:
While migrating the docs to Cloudflare (from Vercel) using https://github.com/AdrianGonz97/refined-cf-pages-action for the deployment, we encountered a rather puzzling error that stopped the workflow in its tracks:
This error didn't make much sense since
npx
should just download the script and execute it immediately.After some time debugging and comparing this project to the other projects we've previously been successful setting up CF with, I discovered the source of the issue coming from
@sveltejs/adapter-cloudflare
, specifically version4.2.0
. This version introducedwrangler
as a dependency. For some reason,npx
doesn't play nice with this and just errors out.The solution is to install
wrangler
locally as a devDependency.