Replies: 12 comments
-
@ulysset can you provide us the console output when running with -r debugger.js? Working version and nonworking version? const util = require('util');
let loggedConfig = true;
exports.default = ({ orig, file, config }) => {
if (loggedConfig) {
console.log(util.inspect(config, {showHidden: false, depth: null, colors: true}));
loggedConfig = false;
}
console.log(orig);
console.log(file);
return orig;
}; |
Beta Was this translation helpful? Give feedback.
-
Thank you @raouldeheer for the quick answer :) Working version
Non-working
|
Beta Was this translation helpful? Give feedback.
-
@ulysset can you try: tsc-alias -r debugger.js > working.txt To get the full output in a file. It seems the log is too big for console. |
Beta Was this translation helpful? Give feedback.
-
Yes indeed, here you go: |
Beta Was this translation helpful? Give feedback.
-
same problem for me |
Beta Was this translation helpful? Give feedback.
-
@ulysset @Ge-yuan-jun I haven't been able to reproduce this bug. Could you setup a demo repo with the reproducible bug? |
Beta Was this translation helpful? Give feedback.
-
@raouldeheer sorry, I'm having trouble reproducing it although I still have the bug :( |
Beta Was this translation helpful? Give feedback.
-
This just hit me in the face in production. For some reason it ignored the alias mappings to a top level folder called |
Beta Was this translation helpful? Give feedback.
-
Don't know if it's related, but this bug is happening to me when the calculated |
Beta Was this translation helpful? Give feedback.
-
@fsmaia thanks for the suggestion. My |
Beta Was this translation helpful? Give feedback.
-
This fixes our issue! {
"extends": "@x/tsconfig/node.json",
"include": ["**/*.ts"],
"compilerOptions": {
"outDir": "./dist/",
"rootDir": "../../",
"baseUrl": "../../",
"paths": {
"src/*": ["./apps/jobs/src/*"],
"@x/node-utils": ["./packages/node-utils/src/index.ts"],
"@x/node-utils/*": ["./packages/node-utils/src/*"]
}
},
"exclude": ["node_modules"]
} Basically baseUrl and rootDir is the same but we reference the paths from the root and it's working fine :) |
Beta Was this translation helpful? Give feedback.
-
Hi, thank you so much for this amazing lib :)
Everything works fine when using 1.6.4 I get
tsc-alias info: 94 files were affected!
But when I switch to 1.6.5 I get
tsc-alias info: 0 files were affected!
(I don't get any errors)It seems like this commit broke my config 0abf049
My tsconfig is
I don't understand why the changes broke the compilation based on my config.
Let me know if you need more info on my config :)
Have a nice day
Beta Was this translation helpful? Give feedback.
All reactions