18:42:25.221 13:12:25 [build] Collecting build info...
18:42:25.221 13:12:25 [build] ✓ Completed in 121ms.
18:42:25.222 13:12:25 [build] Building static entrypoints...
18:42:25.281 13:12:25 [ERROR] [vite] ✗ Build failed in 24ms
18:42:25.592 [vite]: Rollup failed to resolve import "astro/app" from "@astrojs-manifest".
18:42:25.592 This is most likely unintended because it can break your application at runtime.
18:42:25.593 If you do want to externalize this module explicitly add it to
18:42:25.593 `build.rollupOptions.external`
18:42:25.593 Location:
18:42:25.593 /opt/buildhome/.npm/_npx/aa98e6899c6baff3/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:46374:15
18:42:25.593 Stack trace:
18:42:25.593 at viteLog (file:///opt/buildhome/.npm/_npx/aa98e6899c6baff3/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:46374:15)
18:42:25.593 at onLog (file:///opt/buildhome/.npm/_npx/aa98e6899c6baff3/node_modules/vite/dist/node/chunks/dep-D4NMHUTW.js:46072:7)
18:42:25.593 at Object.logger [as onLog] (file:///opt/buildhome/.npm/_npx/aa98e6899c6baff3/node_modules/rollup/dist/es/shared/node-entry.js:22919:9)
18:42:25.593 at file:///opt/buildhome/.npm/_npx/aa98e6899c6baff3/node_modules/rollup/dist/es/shared/node-entry.js:21621:26
18:42:25.690 Failed: error occurred while running build command```
how can i resolve this ?
#astro build error on cloudflare
3 messages · Page 1 of 1 (latest)
Hi @radiant girder. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
I'm sorry, but there is no information in the provided knowledge sources regarding the specific error [vite]: Rollup failed to resolve import "astro/app" from "@astrojs-manifest".
The available documentation for troubleshooting Astro on Cloudflare focuses on the following issues:
- Client-side hydration mismatches: This can occur if Cloudflare’s Auto Minify setting is enabled. To resolve this, you should disable Auto Minify in your Cloudflare settings [Deploy your Astro Site to Cloudflare].
- Node.js runtime API errors: If the build fails with an error stating a package "wasn't found on the file system but is built into node," it indicates a compatibility issue with Cloudflare's runtime. This often requires checking if the package supports the
node:*import syntax or finding an alternative package [Deploy your Astro Site to Cloudflare].