Skip to content

Commit

Permalink
fix: @libsql/client build error (#56192)
Browse files Browse the repository at this point in the history
Here is the error when building @libsql/client:
<img width="794" alt="image" src="https://github.com/vercel/next.js/assets/7880675/7ec63918-04e1-4468-b552-0aba7225b745">

Here is the [codesandbox](https://codesandbox.io/p/sandbox/nice-feynman-hwjsyd?file=%2Fapp%2Fapi%2Froute.ts%3A8%2C7) to repro it.

Enable the `serverComponentsExternalPackages` the issue will be gone:
<img width="766" alt="image" src="https://github.com/vercel/next.js/assets/7880675/af014f2f-2ab2-4ab7-9e3e-4d4adbae36be">

This PR just adds it to the default package list, so Next.js developers don't have to add it manually.



Co-authored-by: Balázs Orbán <18369201+balazsorban44@users.noreply.github.com>
  • Loading branch information
devrsi0n and balazsorban44 committed Sep 29, 2023
1 parent bf35b47 commit c20e21b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Expand Up @@ -23,6 +23,7 @@ Next.js includes a [short list of popular packages](https://github.com/vercel/ne
- `@aws-sdk/client-s3`
- `@aws-sdk/s3-presigned-post`
- `@blockfrost/blockfrost-js`
- `@libsql/client`
- `@jpg-store/lucid-cardano`
- `@mikro-orm/core`
- `@mikro-orm/knex`
Expand Down
1 change: 1 addition & 0 deletions packages/next/src/lib/server-external-packages.json
Expand Up @@ -2,6 +2,7 @@
"@aws-sdk/client-s3",
"@aws-sdk/s3-presigned-post",
"@blockfrost/blockfrost-js",
"@libsql/client",
"@jpg-store/lucid-cardano",
"@mikro-orm/core",
"@mikro-orm/knex",
Expand Down

0 comments on commit c20e21b

Please sign in to comment.