-
Notifications
You must be signed in to change notification settings - Fork 71
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
Extra types path in monorepo -- rootDir #464
Comments
Please do not remove the issue template, it is there for a reason. There are too few details here since the issue template was not used and no repro was provided to really be able to diagnose in any way. That being said, |
That sounds like a
TS infers the I'm guessing that older versions probably didn't pick up the path correctly as symlinks just didn't work. You might've been missing some typings or had some incorrect typings when importing due to that.
It would be good to edit your current issue as well. It's still missing plenty of relevant details, as I have mentioned a few times. |
ticket updated with more details
that was expected, but the resolution(If i get it right) is to add 'reference' path to tsconfig file in related package - but there is no tsconfig there as this is simple package with .css and .json |
ResolutionThank you for filling out the issue template. You are missing the rpt2 verbose log, but I don't think that's necessary in this case.
This is applicable and So this isn't a bug, but you can workaround it in a few different ways:
Based on your error message, I think this indeed just failed to resolve the symlink in older versions, so it couldn't tell where the directory was.
It actually would not be difficult to reproduce this, although the
|
Troubleshooting
Does
tsc
have the same output? If so, please explain why this is incorrect behaviorN/A
Does your Rollup plugin order match this plugin's compatibility? If not, please elaborate
yes
Can you create a minimal example that reproduces this behavior? Preferably, use this environment for your reproduction
N/A
What happens and why it is incorrect
Hi!
After upgrading from 0.31.1 to 0.35.0 build for types containing extra 'src' dir, code transpiled fine(same as before package update).
I use pnpm workspaces in my project.
After investigation I found that id I remove import from another package(import screens from @mycompany/styles) - types generated correctly.
I do not have any 'path' or 'rootDir' configured in any repos tsconfigs, and I do not use aliases.
my repo is huge, not sure if I can to extract working example..
UPD:
Have test different package versions, seems extra types folder starts to appear in 0.33.0
Environment
pnpm monorepo
Versions
:rollup.config.js
:tsconfig.options.json
:tsconfig.json
:/packages/components/tsconfig.json
The text was updated successfully, but these errors were encountered: