-
Notifications
You must be signed in to change notification settings - Fork 520
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
v3.1.0 ts_project TypeScript worker "has not been built from source file" error #2444
Comments
This reminds me of the issue described in the documentation
Can you try again with |
Yeah, you're right, that does look familiar. Here's the result of
Which looks like this is due to https://github.com/bazelbuild/rules_nodejs/blob/fe1dcab28b85a8527cb4f986740e1ac55569685d/packages/typescript/internal/worker/index.js#L15 since |
@lencioni Were you able to resolve this issue? I am currently also stuck at |
No, I have not been able to resolve this issue yet. |
I'm also stuck at |
This issue has been automatically marked as stale because it has not had any activity for 90 days. It will be closed if no further activity occurs in two weeks. Collaborators can add a "cleanup" or "need: discussion" label to keep it open indefinitely. Thanks for your contributions to rules_nodejs! |
This issue was automatically closed because it went two weeks without a reply since it was labeled "Can Close?" |
🐞 bug report
Affected Rule
The issue is caused by the rule: ts_projectIs this a regression?
No, this is an experimental new feature that does not seem to work for me yetDescription
I work in a repo that has a bunch of projects in it that depend on each other. This is defined in our tsconfig files using project references. You can see more about how we have things set up in #2298
I'm trying out the new worker that was included in 3.1.0 and it seems that when I build a project that depends on another project via project references, it often fails with errors like the following:
🔬 Minimal Reproduction
This branch reproduces the issue: https://github.com/lencioni/bazel-typescript-showcase/tree/worker-bug
You can try this out by checking out this branch and then running:
🔥 Exception or Error
Here it is without verbose logs:
If the types from the dependent project are needed for TypeScript to pass, then the compilation will also fail.
🌍 Your Environment
Operating System:
Output of
bazel version
:Rules_nodejs version:
(Please check that you have matching versions between WORKSPACE file and
@bazel/*
npm packages.)Anything else relevant?
@mrmeku
The text was updated successfully, but these errors were encountered: