-
Hi. I'm trying to setup absolute import path as I prefer that over relative paths. I've added the following to my
And for tests, I have added this to my
Now it works in my editor and for tests, but it does not work with ts.ed:
Is there anything I'm missing to get this to work properly? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
Hello @Nohac If you build your app with tsc, the absolute path will be incorrect, because the path will be in And after you'll open an issue because your code doesn't work in production profile. so please use always relative path or use a workspaces to have modules (like "@project/shared"). this is why you have an error when you build your code with babel. I won't help you to fix a bad practice ;) |
Beta Was this translation helpful? Give feedback.
-
Answered here: https://stackoverflow.com/questions/58799049/how-to-use-babel-on-files-that-imports-using-path-aliases |
Beta Was this translation helpful? Give feedback.
Answered here: https://stackoverflow.com/questions/58799049/how-to-use-babel-on-files-that-imports-using-path-aliases