[Issue] NextJS 13.4.12, TursoDB, Drizzle-Orm Module not found / Critical dependency:
Unanswered
Cornish Rex posted this in #help-forum
Cornish RexOP
If for some reason someone has this issue, here's what worked for me:
I am using NextJS with Drizzle-Orm and TursoDB and was getting a lot of error's when using a server component to fetch data, the problem was solved by setting this on next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
serverComponentsExternalPackages: ["@libsql/client"]
}
}
module.exports = nextConfig
I am using NextJS with Drizzle-Orm and TursoDB and was getting a lot of error's when using a server component to fetch data, the problem was solved by setting this on next.config.js
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
serverComponentsExternalPackages: ["@libsql/client"]
}
}
module.exports = nextConfig