-
Notifications
You must be signed in to change notification settings - Fork 12.8k
rewriteRelativeImportExtensions
errors on relative import
#61615
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
Comments
We need something we can clone; "monorepo" does not refer to a single configuration but rather a class of tools and ways of setting things up, the specifics of which are important here. |
It's not runnable, but this should give you a more concrete idea: https://github.com/JakobJingleheimer/ts-monorepo-with-shared If |
Please open a new issue when you can provide a runnable repo; we don't have resources to guess at what you're doing. |
You must have misunderstood or I was not clear. The provided repo works perfectly fine for the purposes of this issue. It is not runnable in terms of an app or server you can use. |
Also, some context: this is a continuation of a conversation I had with Jake, who suggested this behaviour may be a bug and requested I open this issue. I am asking this question because I will be expanding node's guide on using and publishing TypeScript projects (for consumption by node). This helps you as it heads off questions your users would otherwise ask you. Dismissing this issue is not in your interest. |
π Search Terms
rewriteRelativeImportExtensions, monorepo, relative import, file extension
π Version & Regression Information
5.8.3
β― Playground Link
No response
π» Code
π Actual behavior
TSC errors (and the error is kind of broken):
π Expected behavior
It should work
Additional information about the issue
This occurs in a monorepo like so:
A & B get built and published. Shared does not (it is only ever consumed directly by A or B).
running
tsc
inpkgs/A
fails, erroneously claiming../../shared/src/helpers/sql.ts
is not a relative path.The text was updated successfully, but these errors were encountered: