medusajs / medusa

Building blocks for digital commerce
https://medusajs.com
MIT License
24.32k stars 2.37k forks source link

medusa-fulfillment-manual - dependency issue when updating to latest plugin version #6090

Open Edan-Swipik opened 7 months ago

Edan-Swipik commented 7 months ago

Bug report

Describe the bug

trying to update to latest version of medusa-fulfillment-manual produce an error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: medusa-plugin-wishlist@1.1.43
npm ERR! Found: medusa-interfaces@1.3.8
npm ERR! node_modules/medusa-interfaces
npm ERR!   peer medusa-interfaces@"^1.3.7" from @medusajs/file-local@1.0.2
npm ERR!   node_modules/@medusajs/file-local
npm ERR!     @medusajs/file-local@"^1.0.2" from the root project
npm ERR!   peer medusa-interfaces@"^1.3.7" from @medusajs/medusa@1.20.0
npm ERR!   node_modules/@medusajs/medusa
npm ERR!     peer @medusajs/medusa@"^1.14.0" from @medusajs/admin@7.1.10
npm ERR!     node_modules/@medusajs/admin
npm ERR!       @medusajs/admin@"^7.1.10" from the root project
npm ERR!     peer @medusajs/medusa@"^1.17.2" from @medusajs/medusa-js@6.1.4
npm ERR!     node_modules/@medusajs/medusa-js
npm ERR!       @medusajs/medusa-js@"*" from medusa-react@9.0.13
npm ERR!       node_modules/medusa-react
npm ERR!         medusa-react@"^9.0.13" from @medusajs/admin-ui@2.1.11
npm ERR!         node_modules/@medusajs/admin-ui
npm ERR!         1 more (medusa-payment-stripe)
npm ERR!     4 more (medusa-payment-stripe, medusa-plugin-auth, ...)
npm ERR!   4 more (medusa-payment-manual, medusa-plugin-segment, ...)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer medusa-interfaces@"1.3.7" from medusa-plugin-wishlist@1.1.43
npm ERR! node_modules/medusa-plugin-wishlist
npm ERR!   medusa-plugin-wishlist@"^1.1.43" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: medusa-interfaces@1.3.7
npm ERR! node_modules/medusa-interfaces
npm ERR!   peer medusa-interfaces@"1.3.7" from medusa-plugin-wishlist@1.1.43
npm ERR!   node_modules/medusa-plugin-wishlist
npm ERR!     medusa-plugin-wishlist@"^1.1.43" 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.

System information

Medusa version (including plugins):

"dependencies": {
    "@elastic/elasticsearch": "^8.10.0",
    "@medusajs/admin": "^7.1.10",
    "@medusajs/cache-inmemory": "^1.8.10",
    "@medusajs/cache-redis": "^1.9.0",
    "@medusajs/event-bus-local": "^1.9.7",
    "@medusajs/event-bus-redis": "^1.8.10",
    "@medusajs/file-local": "^1.0.2",
    "@medusajs/medusa": "^1.20.0",
    "@tanstack/react-query": "4.22.0",
    "@types/multer": "^1.4.11",
    "body-parser": "^1.20.2",
    "cors": "^2.8.5",
    "dotenv": "16.0.3",
    "express": "^4.17.2",
    "firebase-admin": "^11.11.0",
    "medusa-fulfillment-manual": "^1.1.39",
    "medusa-interfaces": "^1.3.8",
    "medusa-payment-manual": "^1.0.24",
    "medusa-payment-stripe": "^6.0.7",
    "medusa-plugin-auth": "^1.9.1",
    "medusa-plugin-segment": "^1.3.7",
    "medusa-plugin-wishlist": "^1.1.43",
    "prism-react-renderer": "^2.0.4",
    "typeorm": "^0.3.16"
  },
  "devDependencies": {
    "@babel/cli": "^7.14.3",
    "@babel/core": "^7.14.3",
    "@babel/preset-typescript": "^7.21.4",
    "@medusajs/medusa-cli": "^1.3.22",
    "@types/express": "^4.17.13",
    "@types/jest": "^27.4.0",
    "@types/node": "^17.0.8",
    "babel-preset-medusa-package": "^1.1.19",
    "cross-env": "^7.0.3",
    "eslint": "^6.8.0",
    "jest": "^27.3.1",
    "rimraf": "^3.0.2",
    "ts-jest": "^27.0.7",
    "ts-loader": "^9.2.6",
    "typescript": "^4.5.2"
  }

Node.js version: 18 Database: Operating system: Browser (if relevant):

Steps to reproduce the behavior

Expected behavior

all plugins should support the same depentent package?

Edan-Swipik commented 7 months ago

anything?