Wrangler not deploying
alexbowers opened this issue ยท 1 comments
alexbowers commented
๐ Bug report
Describe the bug
Deploying is no longer working for us, we get the error Something went wrong with the request to Cloudflare
with no additional information on that other than the error code: 10021
Reproduce the bug
$ wrangler publish --env staging --verbose
Running NITRO_PRESET=cloudflare yarn nuxt build
yarn run v1.22.18
$ /builds/jobilla/frontend-services/form-viewer/node_modules/.bin/nuxt build
[log] Nuxt CLI v3.0.0-rc.3
[info] Vite client warmed up in 3155ms
[info] Client built in 5[53](https://gitlab.com/jobilla/frontend-services/form-viewer/-/jobs/2497798016#L53)1ms
[info] Building server...
[warn] cypress-file-upload doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module (i.e. it doesn't have "type": "module" or an .mjs extension for the entry point). Please contact the package author to fix.
[success] Server built in 1281ms
[success] [nitro] Generated public .output/public
[start] [nitro] Building server...
[start] [nitro] Writing server bundle...
[success] [nitro] Server built
โโ .output/server/index.mjs (639 kB) (192 kB gzip)
ฮฃ Total size: 639 kB (192 kB gzip)
[success] [nitro] You can preview this build using `npx miniflare .output/server/index.mjs --site .output/public`
[success] [nitro] You can deploy this build using `cd .output/server && npx wrangler publish`
Done in 25.[61](https://gitlab.com/jobilla/frontend-services/form-viewer/-/jobs/2497798016#L61)s.
Build completed successfully!
Using namespace for Workers Site "__form-viewer-staging-workers_sites_assets"
Success
Uploading site files
Error: Something went wrong with the request to Cloudflare...
Uncaught ReferenceError: Cannot access 'basename' before initialization
at line 1 in get basename
at line 1
at line 1
[API code: 10021]
Expected behavior
I would expect the deploy to work. It did previously.
Environment and versions
Fill out the following information about your environment.
wrangler 1.19.12
alexbowers commented
This was caused by some plugins loaded incorrectly in Nuxt on our end.