multiplehats / jaydens-stack

A modern, efficient, and feature-packed monorepo boilerplate. Uses SvelteKit, tRPC, Shadcn, Tailwind CSS and Turborepo
https://jaydens-stack-web.vercel.app
70 stars 2 forks source link

module is not defined #3

Open multiplehats opened 1 year ago

multiplehats commented 1 year ago

@prisma/client needs to be both installed in apps/web as well as packages/database.

It's currently not possible to do import { PrismaClient } from '@acme/database' as it will throw an error: module is not defined.

Related to this issue, alternatively see this Slack thread.