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

Peer Dependencies Issues. #564

Closed
Tracked by #212
vgseven opened this issue Oct 10, 2023 · 6 comments
Closed
Tracked by #212

Peer Dependencies Issues. #564

vgseven opened this issue Oct 10, 2023 · 6 comments

Comments

@vgseven
Copy link

vgseven commented Oct 10, 2023

Screenshot (190)

While downloading or upgrading contentlayer lib on windows there is an peer dependencies issues occurring.

@ChoaibMouhrach
Copy link

ChoaibMouhrach commented Oct 19, 2023

I get the same issue on my linux device when running pnpm and node 18

repo : coding-challenges

 WARN  Issues with peer dependencies found
.
└─┬ contentlayer 0.3.4
  └─┬ @contentlayer/cli 0.3.4
    └─┬ @contentlayer/core 0.3.4
      └─┬ @contentlayer/utils 0.3.4
        └─┬ @opentelemetry/exporter-trace-otlp-grpc 0.39.1
          ├─┬ @opentelemetry/core 1.13.0
          │ └── ✕ unmet peer @opentelemetry/api@">=1.0.0 <1.5.0": found 1.6.0 in @contentlayer/utils
          └─┬ @opentelemetry/otlp-transformer 0.39.1
            ├── ✕ unmet peer @opentelemetry/api@">=1.3.0 <1.5.0": found 1.6.0 in @contentlayer/utils
            ├─┬ @opentelemetry/resources 1.13.0
            │ └── ✕ unmet peer @opentelemetry/api@">=1.0.0 <1.5.0": found 1.6.0 in @contentlayer/utils
            ├─┬ @opentelemetry/sdk-logs 0.39.1
            │ └── ✕ unmet peer @opentelemetry/api@">=1.4.0 <1.5.0": found 1.6.0 in @contentlayer/utils
            ├─┬ @opentelemetry/sdk-metrics 1.13.0
            │ └── ✕ unmet peer @opentelemetry/api@">=1.3.0 <1.5.0": found 1.6.0 in @contentlayer/utils
            └─┬ @opentelemetry/sdk-trace-base 1.13.0
              └── ✕ unmet peer @opentelemetry/api@">=1.0.0 <1.5.0": found 1.6.0 in @contentlayer/utils

@tifandotme
Copy link

Add this to your package.json:

  "pnpm": {
    "overrides": {
      "@opentelemetry/api": "~1.5.0"
    }
  },
  "peerDependencies": {
    "esbuild": "^0.18.0"
  },

@ChoaibMouhrach
Copy link

@tifandotme It worked, Thank you

Can you explain how adding the code to package json solved the issue ?

@tifandotme
Copy link

@ChoaibMouhrach it prevents the package manager to use the versions we're specified.

This is good for a temporary fix. The real solution would be for contentlayer to update its depedencies.

Copy link

stale bot commented Dec 24, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the meta: stale label Dec 24, 2023
@vgseven vgseven closed this as completed Dec 25, 2023
@vgseven
Copy link
Author

vgseven commented Dec 25, 2023

the installation process is working properly now for current installation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants