Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to deploy vitepress site to netlify, its erroring out. with the mentioned error message #5434

Open
1 task done
t3-team opened this issue Jan 18, 2025 · 3 comments
Open
1 task done

Comments

@t3-team
Copy link

t3-team commented Jan 18, 2025

Describe the bug

[..................] - idealTree:aa98e6899c6baff[..................] - idealTree:aa98e6899c6baff[#########.........] / idealTree: timing idealTr[############......] - reify:finalize: timing re[############......] - reify:finalize: timing re[############......] - reify:finalize: timing re[############......] - reify:finalize: timing re[############......] - reify:finalize: timing re[############......] - reify:finalize: timing re[############......] \ reify:finalize: timing re[############......] \ reify:finalize: timing re[############......] \ reify:finalize: timing re[############......] \ reify:finalize: timing re[############......] \ reify:finalize: timing re[############......] \ reify:finalize: timing re[############......] \ reify:finalize: timing re[############......] \ reify:finalize: timing re[############......] \ reify:finalize: timing re[############......] \ reify:finalize: timing re[############......] \ reify:finalize: timing re[############......] \ reify:finalize: timing re[############......] \ reify:finalize: timing re[############......] \ reify:finalize: timing re[############......] \ reify:finalize: timing re[############......] \ reify:finalize: timing re[############......] \ reify:finalize: timing re[##################] / reify:finalize: timing re[##################] - reify:finalize: timing re
20:41:29 [WARN] Missing pages directory: src/pages
20:41:29 [content] Syncing content
20:41:29 [content] Synced content
20:41:29 [types] Generated 169ms
20:41:29 [build] output: "static"
20:41:29 [build] directory: /home/project/dist/
20:41:29 [build] Collecting build info...
20:41:29 [build] ✓ Completed in 220ms.
20:41:29 [build] Building static entrypoints...
20:41:30 [ERROR] [vite] x Build failed in 30ms
[vite]: Rollup failed to resolve import "astro/app" from "@astrojs-manifest".
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
Location:
/home/.npm/npx/aa98e6899c6baff3/node_modules/vite/dist/node/chunks/dep-BJP6rrE.js:51104:17
Stack trace:
at viteWarn (file:///home/.npm/npx/aa98e6899c6baff3/node_modules/vite/dist/node/chunks/dep-BJP6rrE.js:51104:17)
at onwarn (file:///home/.npm/npx/aa98e6899c6baff3/node_modules/vite/dist/node/chunks/dep-BJP6rrE.js:50802:7)
at Object.logger (file:///home/.npm/_npx/aa98e6899c6baff3/node_modules/rollup/dist/es/shared/node-entry.js:21348:9)
at eval (file:///home/.npm/_npx/aa98e6899c6baff3/node_modules/rollup/dist/es/shared/node-entry.js:20195:26)

Link to the Bolt URL that caused the error

https://bolt.new/~/sb1-mkrtukm5

Validations

  • Please make your project public or accessible by URL. This will allow anyone trying to help you to easily reproduce the issue and provide assistance.

Steps to reproduce

build a vitepress documentation site and deploy to netlify at the end.

Expected behavior

deploy vitepress to netlify without issues

Screen Recording / Screenshot

No response

Platform

Browser name = Chrome
Full version = 131.0.0.0
Major version = 131
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
performance.memory = {
  "totalJSHeapSize": 89466071,
  "usedJSHeapSize": 81851143,
  "jsHeapSizeLimit": 2197815296
}
Username = t3-team
Chat ID = 1c2760c83eeb
Client version = b03c990
Server version = b03c990

Additional context

Note sure why is it doing npx astro build instead of deploying vitepress.

@mabouelhouda
Copy link

Please any solution for this issue I face the same

@t3-team
Copy link
Author

t3-team commented Jan 22, 2025

@mabouelhouda Instead of depending on bolt's deploy I went into netlify account, deployed with config changes. I removed all astro references and dependencies and kept only vitepress in package.json, checkin the code to github and deploy in netlify with build settings - 1. build command: npm run docs:build, 2. publish directory: docs/.vitepress/dist (set env variable as required - optional though)

@mabouelhouda
Copy link

Thanks t3-team, still not working and same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants