I am able to import the client and use it in my application:
import { Prisma, type User, type Role } from "@/client";
import { Prisma, type User, type Role } from "@/client";
However, when I try to deploy my application to Fly.io. I endlessly recieve the following when trying to run
pnpm run build
pnpm run build
:
[vite]: Rollup failed to resolve import "@/client" from "/myapp/app/models/user.server.ts".
[vite]: Rollup failed to resolve import "@/client" from "/myapp/app/models/user.server.ts".
It seems that, no matter what I do, the generated client alias is not able to be used by my application. Is there some secret sauce that I am missing here?