#Remix not resolving folder path
1 messages · Page 1 of 1 (latest)
did you configured in tsconfig.json?
What should I configure, I though baseUrl would be enough @tardy shale
you need paths
Remix initial tsconfig.json has this in paths
"~/*": ["./app/*"],
you need to configure there if you want any import alias
Okay how do I do it in this case, already tried
"design-system/*": ["./design-system/*"]
Didn't work @tardy shale
Ok...I just remembered I had the same issue when I was using relative paths too
I'm not sure how to configure it for your expected import, I would do ~/ds and point it to the design-system folder
Like when I did ../../ instead
so I can do import { cva } from "~/ds/css"