-
-
Notifications
You must be signed in to change notification settings - Fork 108
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]: Transitive dependencies are not present in js_image_layer
's node_modules
#677
Comments
@thesayyn do you know how to prevent having to specify transitive dpendencies? |
they should be included automatically. Is this happening with all packages or single one? |
@thesayyn it's happening with all packages. you can check the repro: https://github.com/flolu/rules-ts-transitive-deps |
I am also seeing this issue, but only with certain transitive deps. Bazel run'ing the binary itself works fine; the problem is introduced somehow by the js_image packaging. Will reply when/if I gather some more info. |
@thesayyn any updates? |
Update: my issue turned out to be caused by something else. There was some difference between my local pnpm-installed node_modules and the rules_js-managed ones (perhaps because I didn't set However, I have separately noticed |
@thesayyn do you think rules_ts#280 is the solution to this issue? |
@mvukov I've tried to patch my repro from this issue with the fix from your pull request on this branch. But the issue still persists. Did I mess up the patching? |
i can confirm that the cause of this issue is indeed ts_project. @flolu yes that's the solution to this particular problem. for what is worth, you may workaround this problem by listing your deps in npm_package. until
|
@thesayyn the patch you provided doesn't seem to work for me:
|
sorry. updated it. |
@thesayyn thanks, now the workaround works. |
@thesayyn do you have any idea why this branch doesn't work even though I've patched |
Marking this one as a dup of aspect-build/rules_ts#268. Closing this to keep the discussion in a single place Similar pattern to here aspect-build/rules_jest#72 with a ts_project being depended on via a linked npm_package. In this case the targets are:
|
What happened?
I'm using js_image_layer to build Docker images. But currently, transitive dependencies of node_modules are not passed on to it.
Version
Development (host) and target OS/architectures: Linux (Fedora)
Output of
bazel --version
:Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:How to reproduce
The text was updated successfully, but these errors were encountered: