-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Compilation fails when using project references with tsc -b #26867
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
For relative imports to work correctly with project references, you need to make sure that the output structure in Your current setup outputs the following structure:
But you actually need the following structure to make it work.
|
Structure is exactly same. I have commited the the
in my example the generated output is
when tsc is building pkg2 it fails with following message - with
|
Thanks for clarifying. I misread the with this setup you would actually need I guess the issue importing |
Thanks for the reply I will try it out, if this works then maybe we can mark it as |
@ajafff moving the |
TypeScript Version: 3.1.0-dev.20180901
Typescript build fails when using
tsc -b
with project references. The generated.d.ts
files inoutDir
fails to resolve relative imports importsAnother(consequence) issue is that extending an interface does not recognizes properties of super interface. As can be seen in the output below
a.ts
imports interfaceIT2
from which it extends with another propertyprop3
but the compiler fails to resolve relative reference in generatedd.ts
file and throws error.Search Terms:
tsc build
project references
Code
https://github.com/pragatisureka/typescript-build-test
This repo is similar to https://github.com/RyanCavanaugh/project-references-outfile but without
outFile
Expected behavior:
Build succeeds
Actual behavior:
Build fails
Related Issues:
#26863
#26689
The text was updated successfully, but these errors were encountered: