#Trying to deploy a simple Qwik City app to Cloudflare -- no luck.

3 messages · Page 1 of 1 (latest)

desert berry
#

Following these instructions: https://developers.cloudflare.com/pages/framework-guides/deploy-a-qwik-site/

Fails on the npm build step, see dump below.

I see a /dist/ folder generated, but no CF luck. Any ideas?

Deploy log:
2023-03-16T16:32:56.040231Z Cloning repository...
..
2023-03-16T16:33:09.771216Z Installing missing commands
2023-03-16T16:33:09.771484Z Verify run directory
2023-03-16T16:33:09.771624Z Executing user command: npm run build
2023-03-16T16:33:10.128683Z npm ERR! code ENOENT
2023-03-16T16:33:10.129047Z npm ERR! syscall open
2023-03-16T16:33:10.129236Z npm ERR! path /opt/buildhome/repo/package.json
2023-03-16T16:33:10.129393Z npm ERR! errno -2
2023-03-16T16:33:10.130097Z npm ERR! enoent ENOENT: no such file or directory, open '/opt/buildhome/repo/package.json'
2023-03-16T16:33:10.13036Z npm ERR! enoent This is related to npm not being able to find a file.
2023-03-16T16:33:10.1305Z npm ERR! enoent
2023-03-16T16:33:10.136687Z
2023-03-16T16:33:10.137018Z npm ERR! A complete log of this run can be found in:
2023-03-16T16:33:10.137227Z npm ERR! /opt/buildhome/.npm/_logs/2023-03-16T16_33_10_130Z-debug.log
2023-03-16T16:33:10.145197Z Failed: build command exited with code: 254
2023-03-16T16:33:11.072236Z Failed: an internal error occurred

hexed blade
#

could you try with a generic qwik city (default install without modifying anything) to check if it works

desert berry
#

Thanks for that. I thought of that -- will do tomorrow and report back. Cheers, A