kubb-labs / kubb

The ultimate toolkit for working with APIs.
https://kubb.dev
MIT License
742 stars 67 forks source link

Cannot install unplugin-kubb next to kubb/core 3.0.9 #1418

Closed Jogai closed 1 week ago

Jogai commented 1 week ago

What platform is your computer?

Linux

How did you attempt to install or upgrade?

taze latest -w

What do you see instead?


npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: cut.time@undefined
npm error Found: @kubb/core@3.0.9
npm error node_modules/@kubb/core
npm error   dev @kubb/core@"^3.0.4" from the root project
npm error   @kubb/core@"3.0.9" from @kubb/cli@3.0.9
npm error   node_modules/@kubb/cli
npm error     dev @kubb/cli@"^3.0.4" from the root project
npm error   4 more (@kubb/plugin-client, @kubb/plugin-oas, ...)
npm error
npm error Could not resolve dependency:
npm error dev unplugin-kubb@"^1.0.4" from the root project
npm error
npm error Conflicting peer dependency: @kubb/core@3.0.4
npm error node_modules/@kubb/core
npm error   peer @kubb/core@"3.0.4" from unplugin-kubb@1.0.4
npm error   node_modules/unplugin-kubb
npm error     dev unplugin-kubb@"^1.0.4" from the root project

### Additional information

_No response_
linear[bot] commented 1 week ago

KUBB-74 Cannot install unplugin-kubb next to kubb/core 3.0.9

stijnvanhulle commented 1 week ago

@Jogai Can you provide me your package.json so we can see how your setup is?

Jogai commented 1 week ago

Just tried again in a clean folder with 3.0.10:


tt on  master [?] is 📦 v1.0.0 via  v22.9.0 
❯ cat package.json
{
  "name": "templates",
  "version": "1.0.0",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "description": "",
  "devDependencies": {
    "@kubb/cli": "^3.0.10",
    "@kubb/core": "^3.0.10"
  }
}

tt on  master [?] is 📦 v1.0.0 via  v22.9.0 
❯ npm i unplugin-kubb -D
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: templates@1.0.0
npm error Found: @kubb/core@3.0.10
npm error node_modules/@kubb/core
npm error   dev @kubb/core@"^3.0.10" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @kubb/core@"3.0.4" from unplugin-kubb@1.0.4
npm error node_modules/unplugin-kubb
npm error   dev unplugin-kubb@"*" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution
stijnvanhulle commented 1 week ago

@Jogai I published a new version of unplugin-kubb that will resolve your issue: v1.0.5