PrismaP
Prisma7mo ago
4 replies
WTLccochran

SvelteKit and generated output directory

Hi, I'm building a SvelteKit app and we need to add a generated output directory. After adding the output line in the schema and generating, I'm getting tons of errors like the following:

12:51:26 PM [vite] Error when evaluating SSR module /src/lib/server/db/documents.ts:
|- TypeError: __vite_ssr_import_3__.cwd is not a function
    at C:\Users\Carter\Documents\GitHub\EMU\memo\src\lib\generated\prisma\client.ts:42:19
    at async instantiateModule (file:///C:/Users/CarterCochran/Documents/GitHub/EMU/memo/node_modules/.pnpm/vite@5.4.19_@types+node@24._197072922108a960c156e28bf027ecb4/node_modules/vite/dist/node/chunks/dep-C6uTJdX2.js:53020:5)


Any ideas?
Was this page helpful?