Turborepo kicks my ass
Using turborepo, and I've got a package called ui in which I have components
Said components does this
import { cn } from "../../lib/utils"
But I'd like to do this
import { cn } from "@ui/lib/utils"
There's no immediate errors in the package as the aliases and what not are set fine
But in the app where I import the Button component I get this error
Failed to resolve import "@ui/lib/utils" from "../../packages/ui/components/button.tsx". Does the file exist?
FULL ERROR: https://gist.github.com/barrybtw/2feb7de19242fc3229c35abaf37258c10 Replies