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

package.json is missing @opentelemetry/core in peerDependencies #127

Open
Aghassi opened this issue Apr 25, 2024 · 0 comments
Open

package.json is missing @opentelemetry/core in peerDependencies #127

Aghassi opened this issue Apr 25, 2024 · 0 comments
Labels
type: bug Something isn't working

Comments

@Aghassi
Copy link
Contributor

Aghassi commented Apr 25, 2024

Versions
0.1.1

Steps to reproduce

  1. In a project using pnpm and webpack install this package without adding any additional dependencies
  2. Attempt to import this package and bundle it with webpack
  3. Webpack should throw and an error for not finding @opentelemetry/core. This is because this package never specifies it in package.json and thus will never be resolved.

Additional context
pnpm and newer versions of yarn require maintainers to specify packages they don't bundle but are expected to have as peer dependencies. Otherwise, you are relying on the dependency manager to hoist the dependency which is never guaranteed. It's best to specify these packages as peer dependencies with major ranges unless you need a specific version

@Aghassi Aghassi added the type: bug Something isn't working label Apr 25, 2024
Aghassi added a commit to Aghassi/honeycomb-opentelemetry-web that referenced this issue Apr 25, 2024
Solves honeycombio#127 

This will fix support for package managers like `pnpm` that require you to be very explicit about your dependencies
Aghassi added a commit to Aghassi/honeycomb-opentelemetry-web that referenced this issue Apr 25, 2024
Solves honeycombio#127

This will fix support for package managers like `pnpm` that require you to be very explicit about your dependencies
Aghassi added a commit to Aghassi/honeycomb-opentelemetry-web that referenced this issue Apr 25, 2024
Solves honeycombio#127

This will fix support for package managers like `pnpm` that require you to be very explicit about your dependencies
Aghassi added a commit to Aghassi/honeycomb-opentelemetry-web that referenced this issue Apr 30, 2024
Solves honeycombio#127

This will fix support for package managers like `pnpm` that require you to be very explicit about your dependencies
MustafaHaddara pushed a commit that referenced this issue May 1, 2024
Solves #127

This will fix support for package managers like `pnpm` that require you to be very explicit about your dependencies

Co-authored-by: David <david.aghassi@gmail.com>
MustafaHaddara added a commit that referenced this issue May 1, 2024
Solves #127
Closes #128 

This will fix support for package managers like `pnpm` that require you
to be very explicit about your dependencies

## Which problem is this PR solving?

Closes #128 

@Aghassi contributed a fix in that PR but we merged other PRs and
created merge conflicts. This PR resolves those merge conflicts on their
behalf.

Co-authored-by: David <david.aghassi@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant