Skip to content
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]: Cannot resolve peer dependency at runtime #1441

Open
ewhauser opened this issue Jan 11, 2024 · 0 comments
Open

[Bug]: Cannot resolve peer dependency at runtime #1441

ewhauser opened this issue Jan 11, 2024 · 0 comments
Assignees
Labels
bug Something isn't working funding needed Contribute to https://opencollective.com/aspect-build help wanted Aspect isn't prioritizing this, but the community could

Comments

@ewhauser
Copy link

What happened?

In order for certain applications like eslint and prettier to resolve plugins, you have to run pnpm install in order for them to be able to find them.

Version

bazel 7.0.0
WORKSPACE

How to reproduce

This came up on https://github.com/aspect-build/rules_lint/pull/53 where Alex discussed the issue:

> you must pnpm i in the source folder, in order for eslint to resolve its plugins like @typescript-eslint/parser. We already had to declare a proper js_library(name="eslintrc") but this doesn't use it since you just bazel run the bare eslint binary.

I've tried installing the plugins using `peerDependencies` via pnpm and `public_host_packages` with Bazel, but in both those cases the plugins only get resolved if I run `bazel run -- @pnpm//:pnpm --dir "$PWD" install` first.

Any other information?

Additional discussion in this Slack thread: https://bazelbuild.slack.com/archives/CEZUUKQ6P/p1699897608787459

@ewhauser ewhauser added the bug Something isn't working label Jan 11, 2024
@github-actions github-actions bot added the untriaged Requires traige label Jan 11, 2024
@alexeagle alexeagle added help wanted Aspect isn't prioritizing this, but the community could funding needed Contribute to https://opencollective.com/aspect-build and removed untriaged Requires traige labels Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working funding needed Contribute to https://opencollective.com/aspect-build help wanted Aspect isn't prioritizing this, but the community could
Projects
Status: No status
Development

No branches or pull requests

3 participants