#Remix not resolving folder path

1 messages · Page 1 of 1 (latest)

minor slate
#

It's resolved in the editor though, just not by remix

tardy shale
#

did you configured in tsconfig.json?

minor slate
#

What should I configure, I though baseUrl would be enough @tardy shale

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

minor slate
#

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

tardy shale
#

I'm not sure how to configure it for your expected import, I would do ~/ds and point it to the design-system folder

minor slate
#

Like when I did ../../ instead

tardy shale
#

so I can do import { cva } from "~/ds/css"

minor slate
#

See @tardy shale

#

Resolved in the editor