-
Notifications
You must be signed in to change notification settings - Fork 292
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
Bug with tsconfig paths in #151 #170
Comments
Will revert #151 |
I'm getting the first error both with and without #151. Can you provide a repro repo? The error isn't from any code I added either - it's from ts-loader, you need a tsconfig to compile with it. The second error is due to TypeScript's behavior, it will typecheck every What is the real bug here? Is compiling a As you can see from the tsconfig docs: You can fix this by simply limiting the scope of the tsconfig to the proper files: "files": ["./test.ts"] |
@odensc reverted the revert 😛 |
Cool. If it's an issue, you could consider putting a {
"exclude": ["./test"]
} |
Ahh yes of course, the first case was my mistake. As for the second, the fix you offered does help, thanks. Perhaps it's more about usability then:
|
|
An upstream issue to track the usability would be really great.
Thanks for clarifying, that helps a lot to know. |
One thing I missed here was that Given this, I think the error had all the right information. In an ideal world I would prefer not to have files that are not explicitly loaded throwing type errors (can we silence these / ignore them?), as that seems unfortunate. But if that is the way it is I can certainly understand that too. |
If you create any
test.ts
in the base of ncc itself when cloned then run:I get the error:
If I do create a tsconfig.json file containing:
and run the same thing again I get a new error:
where reverting #151 fixes both of the above.
I wasn't able to get this to replicate into the unit tests directory unfortunately.
//cc @odensc
The text was updated successfully, but these errors were encountered: