You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When creating a package with the rule npm_package, if it gets included in another package, the node_modules dependencies do not get propagated correctly (I think).
For example, have a package A with dependency typescript, and a package B with dependency on A, bazel-bin/packages/B/node_modules/A/node_modules does not exits, yet bazel-bin/packages/A/node_modules exists
Version
Development (host) and target OS/architectures: linux/amd64
Output of bazel --version: bazel 7.1.1
Version of the Aspect rules, or other relevant rules from your WORKSPACE or MODULE.bazel file: 1.41.1
It is entirely possible I am using the npm_package rule wrong, but I am converting quite a large codebase that access things through import.meta.url into the node_modules.
Any other information?
With a little guidance, I would be ready to help and implement the fix.
My mental model is that in @npm/defs.bzl something is missing to transitively propagate the node_modules deps.
The text was updated successfully, but these errors were encountered:
What happened?
When creating a package with the rule npm_package, if it gets included in another package, the node_modules dependencies do not get propagated correctly (I think).
For example, have a package A with dependency typescript, and a package B with dependency on A, bazel-bin/packages/B/node_modules/A/node_modules does not exits, yet bazel-bin/packages/A/node_modules exists
Version
Development (host) and target OS/architectures: linux/amd64
Output of
bazel --version
: bazel 7.1.1Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file: 1.41.1Language(s) and/or frameworks involved: typescript, skylark
How to reproduce
Created a minimal repro here: https://github.com/pat-trunk-io/npm_package_bug_repro
Success when:
Failure when:
It is entirely possible I am using the npm_package rule wrong, but I am converting quite a large codebase that access things through import.meta.url into the node_modules.
Any other information?
With a little guidance, I would be ready to help and implement the fix.
My mental model is that in @npm/defs.bzl something is missing to transitively propagate the node_modules deps.
The text was updated successfully, but these errors were encountered: