I have turborepo with React (Vite) and NextJS and shared components located in workspace. I have set it to use server components, but because of that Vite writes warning on build:
../../packages/ui/src/components/ui/alert-dialog.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error. ../../packages/ui/src/components/ui/dropdown-menu.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
Any way to make Vite ignore “use client” and “use server”?
Tried to setup tsconfig, and set sourcemap: true in vite.config.ts