Failed: build command exited with code: 1 - while deploying Qwik JS

Not able to deploy the Qwik JS in Cloudflare pages. It Failed: build command exited with code: 1

t2023-03-28T07:12:20.953041Z	Cloning repository...
2023-03-28T07:12:22.148059Z	From https://github.com/growwithsundar/sangaas
2023-03-28T07:12:22.14863Z	 * branch            b3743336f366ec7eedbd7a78145a125eade007bc -> FETCH_HEAD
2023-03-28T07:12:22.148818Z	
2023-03-28T07:12:22.197784Z	HEAD is now at b374333 deploy
2023-03-28T07:12:22.198296Z	
2023-03-28T07:12:22.335709Z	
2023-03-28T07:12:22.36132Z	Success: Finished cloning repository files
2023-03-28T07:12:23.137252Z	Installing dependencies
2023-03-28T07:12:23.148621Z	Python version set to 2.7
2023-03-28T07:12:24.964655Z	Attempting node version '16' from .node-version
2023-03-28T07:12:26.513029Z	Downloading and installing node v16.19.1...
2023-03-28T07:12:26.932503Z	Downloading https://nodejs.org/dist/v16.19.1/node-v16.19.1-linux-x64.tar.xz...
2023-03-28T07:12:27.344531Z	Computing checksum with sha256sum
2023-03-28T07:12:27.473926Z	Checksums matched!
2023-03-28T07:12:31.78973Z	Now using node v16.19.1 (npm v8.19.3)
2023-03-28T07:12:32.171745Z	Started restoring cached build plugins
2023-03-28T07:12:32.184627Z	Finished restoring cached build plugins
2023-03-28T07:12:32.654387Z	Attempting ruby version 2.7.1, read from environment
2023-03-28T07:12:36.12292Z	Using ruby version 2.7.1
2023-03-28T07:12:36.473594Z	Using PHP version 5.6
2023-03-28T07:12:36.636518Z	5.2 is already installed.
2023-03-28T07:12:36.662762Z	Using Swift version 5.2
2023-03-28T07:12:36.663456Z	Started restoring cached node modules
2023-03-28T07:12:36.6798Z	Finished restoring cached node modules
2023-03-28T07:12:37.180424Z	Installing NPM modules using NPM version 8.19.3
2023-03-28T07:12:37.587926Z	npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
2023-03-28T07:12:37.588255Z	npm WARN config location in the cache, and they are managed by
2023-03-28T07:12:37.588426Z	npm WARN config     [`cacache`](http://npm.im/cacache).
2023-03-28T07:12:37.991386Z	npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
2023-03-28T07:12:37.991941Z	npm WARN config location in the cache, and they are managed by
2023-03-28T07:12:37.992252Z	npm WARN config     [`cacache`](http://npm.im/cacache).
2023-03-28T07:12:40.656088Z	npm WARN deprecated [email protected]: This package has been deprecated and is no longer maintained. Please use @rollup/plugin-inject.
2023-03-28T07:12:40.735162Z	npm WARN deprecated [email protected]: Please use @jridgewell/sourcemap-codec instead
2023-03-28T07:12:45.05296Z	
2023-03-28T07:12:45.053399Z	added 451 packages, and audited 452 packages in 7s
2023-03-28T07:12:45.053708Z	
2023-03-28T07:12:45.053856Z	186 packages are looking for funding
2023-03-28T07:12:45.053975Z	  run `npm fund` for details
2023-03-28T07:12:45.054678Z	
2023-03-28T07:12:45.054885Z	found 0 vulnerabilities
2023-03-28T07:12:45.071897Z	NPM modules installed
2023-03-28T07:12:45.63702Z	npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
2023-03-28T07:12:45.637337Z	npm WARN config location in the cache, and they are managed by
2023-03-28T07:12:45.637507Z	npm WARN config     [`cacache`](http://npm.im/cacache).
2023-03-28T07:12:45.65578Z	Installing Hugo 0.54.0
2023-03-28T07:12:46.345862Z	Hugo Static Site Generator v0.54.0-B1A82C61A/extended linux/amd64 BuildDate: 2019-02-01T10:04:38Z
2023-03-28T07:12:46.349849Z	Started restoring cached go cache
2023-03-28T07:12:46.368623Z	Finished restoring cached go cache
2023-03-28T07:12:46.516638Z	go version go1.14.4 linux/amd64
2023-03-28T07:12:46.531283Z	go version go1.14.4 linux/amd64
2023-03-28T07:12:46.534354Z	Installing missing commands
2023-03-28T07:12:46.534631Z	Verify run directory
2023-03-28T07:12:46.534781Z	Executing user command: npm run build
2023-03-28T07:12:47.009448Z	npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
2023-03-28T07:12:47.009807Z	npm WARN config location in the cache, and they are managed by
2023-03-28T07:12:47.009977Z	npm WARN config     [`cacache`](http://npm.im/cacache).
2023-03-28T07:12:47.02598Z	
2023-03-28T07:12:47.026332Z	> build
2023-03-28T07:12:47.026563Z	> qwik build
2023-03-28T07:12:47.026706Z	
2023-03-28T07:12:47.12484Z	
2023-03-28T07:12:47.125193Z	      ............
2023-03-28T07:12:47.125376Z	    .::: :--------:.
2023-03-28T07:12:47.125529Z	   .::::  .:-------:.
2023-03-28T07:12:47.125668Z	  .:::::.   .:-------.
2023-03-28T07:12:47.1258Z	  ::::::.     .:------.
2023-03-28T07:12:47.125931Z	 ::::::.        :-----:
2023-03-28T07:12:47.126083Z	 ::::::.       .:-----.
2023-03-28T07:12:47.126219Z	  :::::::.     .-----.
2023-03-28T07:12:47.126361Z	   ::::::::..   ---:.
2023-03-28T07:12:47.126496Z	    .:::::::::. :-:.
2023-03-28T07:12:47.126627Z	     ..::::::::::::
2023-03-28T07:12:47.126759Z	             ...::::
2023-03-28T07:12:47.126887Z	     
2023-03-28T07:12:47.127017Z	
2023-03-28T07:12:47.127165Z	
2023-03-28T07:12:47.127296Z	npm run build.types
2023-03-28T07:12:47.127425Z	npm run build.client
2023-03-28T07:12:47.127561Z	npm run build.server
2023-03-28T07:12:47.127691Z	npm run lint
2023-03-28T07:12:47.127822Z	
2023-03-28T07:12:47.533546Z	npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
2023-03-28T07:12:47.53496Z	npm WARN config location in the cache, and they are managed by
2023-03-28T07:12:47.535197Z	npm WARN config     [`cacache`](http://npm.im/cacache).
2023-03-28T07:12:47.549985Z	
2023-03-28T07:12:47.550324Z	> build.client
2023-03-28T07:12:47.550508Z	> vite build
2023-03-28T07:12:47.550637Z	
2023-03-28T07:12:49.545216Z	vite v4.2.1 building for production...
2023-03-28T07:12:50.45582Z	transforming...
2023-03-28T07:12:51.81025Z	✓ 49 modules transformed.
2023-03-28T07:12:51.892622Z	rendering chunks...
2023-03-28T07:12:51.930211Z	computing gzip size...
2023-03-28T07:12:51.951029Z	dist/q-manifest.json       13.15 kB
2023-03-28T07:12:51.951316Z	dist/build/q-fea1b22f.css   4.82 kB │ gzip:  1.60 kB
2023-03-28T07:12:51.951467Z	dist/build/q-9d4eaa12.js    0.06 kB │ gzip:  0.07 kB
2023-03-28T07:12:51.951781Z	dist/build/q-3b700b0c.js    0.11 kB │ gzip:  0.11 kB
2023-03-28T07:12:51.952179Z	dist/build/q-ff7ddf7c.js    0.19 kB │ gzip:  0.18 kB
2023-03-28T07:12:51.95253Z	dist/build/q-ecf389d7.js    0.23 kB │ gzip:  0.20 kB
2023-03-28T07:12:51.952872Z	dist/build/q-18a3a96e.js    0.28 kB │ gzip:  0.22 kB
2023-03-28T07:12:51.953183Z	dist/build/q-8f094beb.js    0.32 kB │ gzip:  0.25 kB
2023-03-28T07:12:51.953315Z	dist/build/q-8b582fe6.js    0.40 kB │ gzip:  0.19 kB
2023-03-28T07:12:51.953428Z	dist/build/q-a3b5cbf1.js    0.58 kB │ gzip:  0.32 kB
2023-03-28T07:12:51.953552Z	dist/build/q-84f61c23.js    0.68 kB │ gzip:  0.40 kB
2023-03-28T07:12:51.954036Z	dist/build/q-d63622d1.js    0.76 kB │ gzip:  0.47 kB
2023-03-28T07:12:51.954324Z	dist/build/q-724c4aaf.js    2.48 kB │ gzip:  1.27 kB
2023-03-28T07:12:51.954482Z	dist/service-worker.js      2.54 kB │ gzip:  1.21 kB
2023-03-28T07:12:51.955081Z	dist/build/q-41e06b1d.js    6.21 kB │ gzip:  3.09 kB
2023-03-28T07:12:51.955279Z	dist/build/q-a51009a9.js   44.60 kB │ gzip: 17.99 kB
2023-03-28T07:12:51.955605Z	✓ built in 2.41s
2023-03-28T07:12:51.992618Z	
2023-03-28T07:12:51.99305Z	✓ Built client modules
2023-03-28T07:12:56.028781Z	
2023-03-28T07:12:56.029102Z	npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
2023-03-28T07:12:56.029274Z	npm WARN config location in the cache, and they are managed by
2023-03-28T07:12:56.029405Z	npm WARN config     [`cacache`](http://npm.im/cacache).
2023-03-28T07:12:56.029552Z	
2023-03-28T07:12:56.053471Z	Failed: build command exited with code: 1
2023-03-28T07:12:56.806135Z	Failed: error occurred while running build command

have you installed Cloudflare pages adapter for qwik?

I’ve been having the same exact issue for the last few days. Everything is set up and an older deployment still works fine but I am not able to deploy a newer version of my site.

1 Like

same here, did you get it sorted?