-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaking change on v1.4.2
: replacement for non-alias 🤯
#103
Comments
Try this config: #79 (comment) |
@raouldeheer Thanks for your quick answer! I tried to add {
"compilerOptions": {
"baseUrl": ".", // If I understand this is the problem source, and yes my project files are in root fs :/
...
},
....
"ts-node": {}, // I've got some ts-node config working for instance
"tsc-alias": {
"replacers": {
"BaseUrl": {
"enabled": false
}
}
} But I still have the same issue |
The name of BaseUrl has been changed to |
@pp0rtal please replace |
@raouldeheer cc @justkey007 Works perfectly know! 😄 Just by curiosity |
"All module imports with non-relative names are assumed to be relative to the baseUrl." -typescript handbook |
Hi!
I've got a second bug spotted on (first minor here), and since 1.4.2
and I think this one is quite interesting as it's replacing a NodeJs native library import statement.
Description / steps to reproduce
tsconfig.json
alias config doesn't matter!/utils/index.js
, which does contain a Node.js native package(for instance cluster, but it works for a
child_process
,fs
or whatever)/cluster.js
:// the bug occurs as long the file "cluster" exists
The
/utils/index.js
will be rewritten as following 🤯 🤯 🤯Origin
That's not the same source as the minor bug I've spot!
This issue is coming from this commit: 18b252a
I'm trying to spot exactly which code did this regression, probably
replaceBaseUrlImport
but I'm not sure to be able to edit this code without breaking things 😞Let me know if I can help
The text was updated successfully, but these errors were encountered: