-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Vercel Adapter doesn't bundle @libsql/client
#9936
Comments
Hey @binyamin, are you trying to use Node dependencies are not bundled by default, so this is normal behavior. |
I did some digging. |
Note that I am getting the same 500 error mentioned in #9801. Also, nft does write a file |
Astro doesn't support Vercel Edge functions for app deployment. Are you saying you have a project you're deploying to Serverless that's failing for this reason? That line you linked to that ignores They just released a wasm version of their library, |
See #9936 (comment) What actually happens without the ignore?
FWIW, importing |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
When a project uses the
@astrojs/vercel/serverless
as an adapter, the module@libsql/client
will never be bundled. This is hardcoded insrc/lib/nft.ts
. This behavior is not noted in the docs, and there's no warning from the CLI. The serverless function just fails.The only hint to this is that the
.vercel/output
folder contains a broken symlink in thenode_modules
for@libsql/client
.What's the expected result?
The function should bundle appropriately. I can see from the code that it ignores
@libsql/client
for a reason. I don't understand the reason, but I am willing to brainstorm for a different solution.Note: The reproduction on stackblitz will probably be useless, since stackblitz doesn't show the
.vercel
folder. See the source file instead.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-4vea6g
Participation
The text was updated successfully, but these errors were encountered: