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
Copy file name to clipboardExpand all lines: docs/faq.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,12 @@ then you are hitting https://github.com/bazelbuild/bazel/issues/15605
48
48
The workaround is to patch the package.json of any offending packages in npm_translate_lock, see https://github.com/aspect-build/rules_js/issues/148#issuecomment-1144378565.
49
49
Or, if a newer version of the package has fixed the duplicate keys, you could upgrade.
50
50
51
+
If the error looks like this: `ERR_PNPM_FETCH_404 GET https://registry.npmjs.org/@my-workspace%2Ffoo: Not Found - 404`, where `foo` is a package living in a workspace in your local
52
+
codebase and it's being declared [`pnpm-workspace.yaml`](https://pnpm.io/pnpm-workspace_yaml) and that you are relying on the `yarn_lock` attribute of `npm_translate_lock`, then
53
+
you're hitting a caveat of the migration process.
54
+
55
+
The workaround is to generate the `pnpm-lock.yaml` on your own as mentioned in the migration guide and to use the `pnpm_lock` attribute of `npm_translate_lock` instead.
56
+
51
57
## In my monorepo, can Bazel output multiple packages under one dist/ folder?
52
58
53
59
Many projects have a structure like the following:
Copy file name to clipboardExpand all lines: docs/migrate.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,6 +62,10 @@ rather than `npm` or `yarn` when changing dependency versions or adding new depe
62
62
If needed, you might have both the pnpm lockfile and your legacy one checked into the repo during a migration window.
63
63
You'll have to avoid version skew between the two files during that time.
64
64
65
+
Please note that using the `yarn_lock` attributes of `npm_translate_lock` has caveat of not supporting the [`pnpm-workspace.yaml`](https://pnpm.io/pnpm-workspace_yaml) which is needed by
66
+
`pnpm` to declare workspaces. Therefore, if your project need this, the only option is to migrate to `pnpm` immediately and use solely the
67
+
`pnpm_lock` attribute of `npm_translate_lock`.
68
+
65
69
## Test whether pnpm is working
66
70
67
71
A few packages have bugs which rely on "hoisting" behavior in yarn or npm, where undeclared dependencies can be loaded because they happen to be installed in an ancestor folder under `node_modules`.
0 commit comments