importing drizzle schema client side error [nextjs monorepo]
Hey all, I'm trying to import a drizzle schema to the client side and I'm getting a webpack loader error:
I saw this similar issue but exporting the function from the db/index.ts gives the same error
https://github.com/drizzle-team/drizzle-orm/discussions/885
Any ideas? Thanks!
GitHub
Sharing schema across monorepo · drizzle-team drizzle-orm · Discuss...
I'm currently converting a nextJs frontend to a monorepo with a new backend for handling async tasks. I'd like some help on how to share the db schema across my services. My Setup looks som...
Solution:Jump to solution
Just have to transpile the package! Just realised the webpack error was throwing on a typescript character
```
const nextConfig = {
transpilePackages: ['db'],
}...
1 Reply
Solution
Just have to transpile the package! Just realised the webpack error was throwing on a typescript character
Awesome