I can't Deploy (An error occurred during the compilation or release process)

Failed to publish app
Dec 6, 2025, 8:41:28 PM
**Something went wrong in the App Hosting build or rollout process. Look at the logs to see more details.
**

in the backend app hosting says

Implemented from Firebase Studio
December 6, 2025, 8:41:28 p.m.
An error occurred during compilation.
An error occurred during the compilation or release process. Check the logs for more details.

and when i check the Cloud Build:


failed to build: (error ID: d8040594):
{“reason”:“Failed Framework Build”,“code”:“fah/failed-framework-build”,“userFacingMessage”:“Your application failed to run the framework build command ‘npm exec --prefix /layers/google.nodejs.firebasenextjs/npm_modules apphosting-adapter-nextjs-build’ successfully. Please check the raw log to address the error and confirm that your application builds locally before redeploying.”,“rawLog”:“(error ID: d0a693a9):
⨯ useSearchParams() should be wrapped in a suspense boundary at page “/404”. Read more: Missing Suspense boundary with useSearchParams | Next.js
at g (/workspace/.next/server/chunks/700.js:27:41277)
at m (/workspace/.next/server/chunks/700.js:44:19612)
at o (/workspace/.next/server/chunks/531.js:1:35165)
at n3 (/workspace/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:2:82831)
at n6 (/workspace/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:2:84601)
at n6 (/workspace/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:2:101560)
at n5 (/workspace/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:2:104801)
at n7 (/workspace/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:2:102219)
at aa (/workspace/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:2:108211)
at ae (/workspace/node_modules/next/dist/compiled/next-server/app-page.runtime.prod.js:2:106833)
Error occurred prerendering page “/_not-found”.
Export encountered an error on /_not-found/page: /_not-found, exiting the build.
⨯ Next.js build worker exited with code: 1 and signal: null
/layers/google.nodejs.firebasenextjs/npm_modules/node_modules/@apphosting/common/dist/index.js:64
reject(new Error(Build process exited with error code ${code}.));
^
Error: Build process exited with error code 1.
at ChildProcess. (/layers/google.nodejs.firebasenextjs/npm_modules/node_modules/@apphosting/common/dist/index.js:64:24)
at ChildProcess.emit (node:events:519:28)
at ChildProcess._handle.onexit (node:internal/child_process:293:12)
Node.js v22.21.0”}
ERROR: failed to build: exit status 1
ERROR: failed to build: executing lifecycle: failed with status code: 51
Finished Step #3 - “pack”
ERROR
ERROR: build step 3 “gcr.io/k8s-skaffold/pack” failed: step exited with non-zero status: 1


But the strange thing is that this is happening to me in all of my projects. I already went to the terminal and checked this:

fix-react2shell-next - CVE-2025-66478 vulnerability scanner

:open_file_folder: Found 1 package.json file(s)

✓ No vulnerable packages found!
Your project is not affected by CVE-2025-66478.

Pretty sure this was the problem I had a few days ago and I solved it by upgrading to Next.js 15.3.6 - now I’m getting build errors again today on publish (7th December) even though I have 15.3.6

I am experiencing the same problem. I developed my apps with agent though.

@Charlie the error details you’ve shared point to the problem with your app’s build. Because it failed to build it couldn’t be deployed. The error with with a missing suspense boundary needs to be addressed before your project will build. Have you tried copying and pasting this error into your Gemini chat?