Skip to content

Dependency Tree issue #58

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

Open
felixdenoix opened this issue Oct 11, 2023 · 2 comments
Open

Dependency Tree issue #58

felixdenoix opened this issue Oct 11, 2023 · 2 comments

Comments

@felixdenoix
Copy link

felixdenoix commented Oct 11, 2023

Issue

Encountered an error while trying to install package on project. The error prompted was the following one:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: project@undefined
npm ERR! Found: @contentful/[email protected]
npm ERR! node_modules/@contentful/rich-text-types
npm ERR!   @contentful/rich-text-types@"^16.0.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer @contentful/rich-text-types@"^15.14.1" from [email protected]
npm ERR! node_modules/contentful-rich-text-vue-renderer
npm ERR!   contentful-rich-text-vue-renderer@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Downgrading @contentful/rich-text-types to @^15 allowed me to install the package.
After having a look to the changelog of the different rich-text related packages, it seems that the upgrade between 15 and 16 is only a version bump. Would you consider updating the dependencies on this package ?

Project Package.json

  "devDependencies": {
    "@nuxt/devtools": "^0.8.4",
    "@nuxt/image": "^1.0.0-rc.1",
    "@nuxt/kit": "npm:@nuxt/kit-edge@latest",
    "@nuxtjs/eslint-config-typescript": "^12.0.0",
    ...
  },
  "dependencies": {
    "@contentful/rich-text-html-renderer": "^16.0.2",
    "@contentful/rich-text-types": "^16.0.2",
    "@pinia/nuxt": "^0.4.3",
    "@studio-freight/lenis": "^1.0.22",
    "contentful": "^10.5.1",
    "gsap": "^3.10.2",
    "h3-zod": "^0.5.1",
    "rupture": "^0.7.1",
    "zod": "^3.22.2"
  }

Config

Darwin 22.6.0
node v18.18.0
npm v9.8.1

PS

Thanks for the package ✌️

@perenstrom-bontouch
Copy link

I don't think this should have been closed. This is still needed

@felixdenoix felixdenoix reopened this Jun 16, 2024
@felixdenoix
Copy link
Author

felixdenoix commented Jun 16, 2024

I closed the issue as it had no response in the first 6 months so i figured it must have been a cache issue on my package manager or whatnot but you are right the error is still present.

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

No branches or pull requests

2 participants