You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm init astro@latest # Just the basicscd to-generated-dir
npx astro add vercel
# edit to use /static
npm run build
> npm run build
> @example/basics@0.0.1 build
> astro build
06:37:49 PM [build] output target: server
06:37:49 PM [build] deploy adapter: @astrojs/vercel/static
06:37:49 PM [build] Collecting build info...
06:37:49 PM [build] Completed in 12ms.
06:37:49 PM [build] Building server entrypoints...
[vite]: Rollup failed to resolve import "undefined" from "@astrojs-ssr-virtual-entry".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
error [vite]: Rollup failed to resolve import "undefined" from "@astrojs-ssr-virtual-entry".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
Error: [vite]: Rollup failed to resolve import "undefined" from "@astrojs-ssr-virtual-entry".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
at onRollupWarning (file:///[snip]/sandbox-astro-vercel-static/node_modules/vite/dist/node/chunks/dep-4da11a5e.js:45916:19)
at onwarn (file:///[snip]/sandbox-astro-vercel-static/node_modules/vite/dist/node/chunks/dep-4da11a5e.js:45714:13)
at Object.onwarn (file:///[snip]/sandbox-astro-vercel-static/node_modules/rollup/dist/es/shared/rollup.js:23225:13)
at ModuleLoader.handleResolveId (file:///[snip]/sandbox-astro-vercel-static/node_modules/rollup/dist/es/shared/rollup.js:22352:26)
at file:///[snip]/sandbox-astro-vercel-static/node_modules/rollup/dist/es/shared/rollup.js:22313:26
I've found #4464 , but it seems different problem (and already fixed it).
What version of
astro
are you using?1.5.2
Are you using an SSR adapter? If so, which one?
@astrojs/vercel/static
What package manager are you using?
npm, yarn
What operating system are you using?
WSL2(Ubuntu 22.04)
Describe the Bug
I've found #4464 , but it seems different problem (and already fixed it).
Link to Minimal Reproducible Example
https://github.com/berlysia/reproducible-astrojs-vercel-static-build-failure
Participation
The text was updated successfully, but these errors were encountered: