-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Imports breaking on >1.4.0 #79
Comments
@ThiagoNP |
This is probably because it's resolving to the baseUrl. This could be solved by add a small config to tsconfig.json. {
"compilerOptions": {
...
},
"tsc-alias": {
"replacers": {
"base-url": {
"enabled": false
}
}
}
} The second problem happens because tsc-alias checks if the file exists, because if it doesn't it will use the next path in the array (in the tsconfig each path has an array of solutions). |
@justkey007 There has been no activity on this issue for over 14 days now. So, I assume the problem has been fixed or this issue could be marked as stale. |
This should be written about in the readme as this really messed me up! |
@justkey007 Maybe we should add a link to the F.A.Q. #110 in the readme? |
@raouldeheer I also think it will help a lot. |
I'm upgrading the dependencies on my projects, and after upgrading tsc-alias (to 1.4.1 or 1.5.0), some of my imports are breaking.
The
paths
on my tsconfig is like this:But this
Is becoming
I think it's because there is a redux folder on the folder it's compiling, but it should not be parsed, as it does not begins with
~/
Another problem I had, was because some paths were not being parsed if an asset was not present (on the release script they were added afterwards)
This import was not parsed if the svg file was not present in the dist folder
The text was updated successfully, but these errors were encountered: