-
Hello, I create a new remix app, and try to create a custom path for my component in tsconfig file like this: "baseUrl": ".",
"paths": {
"~/*": ["./app/*"],
"@components/*": ["./app/components/*"]
}, so I can import my component like this: import MyComponent from "@components/MyComponent" but it says cannot find module when build. And interesting thing that i found is, if i change "paths": {
"~/*": ["./app/*"],
} to "paths": {
"@/*": ["./app/*"],
} and import my component like this: import MyComponent from "@/components/MyComponent" it says cannot find the module too. I don't know if this is a remix issue or not, Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Remix right now only supports |
Beta Was this translation helpful? Give feedback.
-
This feature was added in #2412 and should be available in the next release 🎉 |
Beta Was this translation helpful? Give feedback.
This feature was added in #2412 and should be available in the next release 🎉