ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
12.18k stars 1.01k forks source link

bug: Conflicting peer dependency: @capacitor/core@4.0.1 #5841

Closed NeluQi closed 2 years ago

NeluQi commented 2 years ago

Found: @capacitor/android@3.6.0 npm ERR! node_modules/@capacitor/android npm ERR! @capacitor/android@"4.0.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! @capacitor/android@"4.0.1" from the root project npm ERR! npm ERR! Conflicting peer dependency: @capacitor/core@4.0.1 npm ERR! node_modules/@capacitor/core npm ERR! peer @capacitor/core@"^4.0.0" from @capacitor/android@4.0.1 npm ERR! node_modules/@capacitor/android npm ERR! @capacitor/android@"4.0.1" 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

IT-MikeS commented 2 years ago

Have you updated a few of your @capacitor dependencies to v4 but not all of them? What does your package.json look like?

morsagmon commented 2 years ago

Getting the same error, attempting an upgrade using the ionic vscode plugin recommendation. Here's what I did that did NOT fix this issue:

The error I'm getting in the log:

While resolving: simplify-pilot@0.0.1
Found: @capacitor/android@3.4.3
node_modules/@capacitor/android
  @capacitor/android@"4.0.1" from the root project

Could not resolve dependency:
@capacitor/android@"4.0.1" from the root project

Conflicting peer dependency: @capacitor/core@4.0.1
node_modules/@capacitor/core
  peer @capacitor/core@"^4.0.0" from @capacitor/android@4.0.1
  node_modules/@capacitor/android
    @capacitor/android@"4.0.1" from the root project

Fix the upstream dependency conflict, or retry
this command with --force, or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

Raw JSON explanation object:

{
  "code": "ERESOLVE",
  "edge": {
    "type": "prod",
    "name": "@capacitor/android",
    "spec": "4.0.1",
    "error": "INVALID",
    "from": {
      "location": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
    }
  },
  "dep": {
    "name": "@capacitor/android",
    "version": "4.0.1",
    "whileInstalling": {
      "name": "simplify-pilot",
      "version": "0.0.1",
      "path": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
    },
    "location": "node_modules/@capacitor/android",
    "isWorkspace": false,
    "dependents": [
      {
        "type": "prod",
        "name": "@capacitor/android",
        "spec": "4.0.1",
        "error": "INVALID",
        "from": {
          "location": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
        }
      }
    ]
  },
  "current": {
    "name": "@capacitor/android",
    "version": "3.4.3",
    "location": "node_modules/@capacitor/android",
    "isWorkspace": false,
    "dependents": [
      {
        "type": "prod",
        "name": "@capacitor/android",
        "spec": "4.0.1",
        "error": "INVALID",
        "from": {
          "location": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
        }
      }
    ]
  },
  "peerConflict": {
    "current": {
      "name": "@capacitor/core",
      "version": "3.7.0",
      "location": "node_modules/@capacitor/core",
      "isWorkspace": false,
      "dependents": [
        {
          "type": "prod",
          "name": "@capacitor/core",
          "spec": "latest",
          "from": {
            "name": "@capacitor-community/camera-preview",
            "version": "3.1.0",
            "location": "node_modules/@capacitor-community/camera-preview",
            "isWorkspace": false,
            "dependents": [
              {
                "type": "prod",
                "name": "@capacitor-community/camera-preview",
                "spec": "^3.0.0",
                "from": {
                  "location": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
                }
              }
            ]
          }
        },
        {
          "type": "peer",
          "name": "@capacitor/core",
          "spec": "^3.0.0",
          "from": {
            "name": "@capacitor-community/contacts",
            "version": "1.1.3",
            "location": "node_modules/@capacitor-community/contacts",
            "isWorkspace": false,
            "dependents": [
              {
                "type": "prod",
                "name": "@capacitor-community/contacts",
                "spec": "^1.1.3",
                "from": {
                  "location": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
                }
              }
            ]
          }
        },
        {
          "type": "peer",
          "name": "@capacitor/core",
          "spec": "^3.4.0",
          "from": {
            "name": "@capacitor/android",
            "version": "3.4.3",
            "location": "node_modules/@capacitor/android",
            "isWorkspace": false,
            "dependents": [
              {
                "type": "prod",
                "name": "@capacitor/android",
                "spec": "4.0.1",
                "error": "INVALID",
                "from": {
                  "location": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
                }
              }
            ]
          }
        },
        {
          "type": "peer",
          "name": "@capacitor/core",
          "spec": "^3.0.0",
          "from": {
            "name": "@capacitor/app",
            "version": "1.1.1",
            "location": "node_modules/@capacitor/app",
            "isWorkspace": false,
            "dependents": [
              {
                "type": "prod",
                "name": "@capacitor/app",
                "spec": "4.0.1",
                "error": "INVALID",
                "from": {
                  "location": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
                }
              }
            ]
          }
        },
        {
          "type": "peer",
          "name": "@capacitor/core",
          "spec": "^3.0.0",
          "from": {
            "name": "@capacitor/camera",
            "version": "1.3.1",
            "location": "node_modules/@capacitor/camera",
            "isWorkspace": false,
            "dependents": [
              {
                "type": "prod",
                "name": "@capacitor/camera",
                "spec": "4.0.1",
                "error": "INVALID",
                "from": {
                  "location": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
                }
              }
            ]
          }
        },
        {
          "type": "peer",
          "name": "@capacitor/core",
          "spec": "^3.0.0",
          "from": {
            "name": "@capacitor/haptics",
            "version": "1.1.4",
            "location": "node_modules/@capacitor/haptics",
            "isWorkspace": false,
            "dependents": [
              {
                "type": "prod",
                "name": "@capacitor/haptics",
                "spec": "4.0.1",
                "error": "INVALID",
                "from": {
                  "location": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
                }
              }
            ]
          }
        },
        {
          "type": "peer",
          "name": "@capacitor/core",
          "spec": "^3.4.0",
          "from": {
            "name": "@capacitor/ios",
            "version": "3.4.3",
            "location": "node_modules/@capacitor/ios",
            "isWorkspace": false,
            "dependents": [
              {
                "type": "prod",
                "name": "@capacitor/ios",
                "spec": "4.0.1",
                "error": "INVALID",
                "from": {
                  "location": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
                }
              }
            ]
          }
        },
        {
          "type": "peer",
          "name": "@capacitor/core",
          "spec": "^3.0.0",
          "from": {
            "name": "@capacitor/keyboard",
            "version": "1.2.2",
            "location": "node_modules/@capacitor/keyboard",
            "isWorkspace": false,
            "dependents": [
              {
                "type": "prod",
                "name": "@capacitor/keyboard",
                "spec": "4.0.1",
                "error": "INVALID",
                "from": {
                  "location": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
                }
              }
            ]
          }
        },
        {
          "type": "peer",
          "name": "@capacitor/core",
          "spec": "^3.0.0",
          "from": {
            "name": "@capacitor/network",
            "version": "1.0.7",
            "location": "node_modules/@capacitor/network",
            "isWorkspace": false,
            "dependents": [
              {
                "type": "prod",
                "name": "@capacitor/network",
                "spec": "4.0.1",
                "error": "INVALID",
                "from": {
                  "location": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
                }
              }
            ]
          }
        },
        {
          "type": "peer",
          "name": "@capacitor/core",
          "spec": "^3.0.0",
          "from": {
            "name": "@capacitor/push-notifications",
            "version": "1.0.9",
            "location": "node_modules/@capacitor/push-notifications",
            "isWorkspace": false,
            "dependents": [
              {
                "type": "prod",
                "name": "@capacitor/push-notifications",
                "spec": "4.0.1",
                "error": "INVALID",
                "from": {
                  "location": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
                }
              }
            ]
          }
        },
        {
          "type": "peer",
          "name": "@capacitor/core",
          "spec": "^3.0.0",
          "from": {
            "name": "@capacitor/splash-screen",
            "version": "1.2.2",
            "location": "node_modules/@capacitor/splash-screen",
            "isWorkspace": false,
            "dependents": [
              {
                "type": "prod",
                "name": "@capacitor/splash-screen",
                "spec": "4.0.1",
                "error": "INVALID",
                "from": {
                  "location": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
                }
              }
            ]
          }
        },
        {
          "type": "peer",
          "name": "@capacitor/core",
          "spec": "^3.0.0",
          "from": {
            "name": "@capacitor/status-bar",
            "version": "1.0.8",
            "location": "node_modules/@capacitor/status-bar",
            "isWorkspace": false,
            "dependents": [
              {
                "type": "prod",
                "name": "@capacitor/status-bar",
                "spec": "4.0.1",
                "error": "INVALID",
                "from": {
                  "location": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
                }
              }
            ]
          }
        },
        {
          "type": "peer",
          "name": "@capacitor/core",
          "spec": "^3.0.0",
          "from": {
            "name": "@capacitor/storage",
            "version": "1.2.5",
            "location": "node_modules/@capacitor/storage",
            "isWorkspace": false,
            "dependents": [
              {
                "type": "prod",
                "name": "@capacitor/storage",
                "spec": "^1.2.5",
                "from": {
                  "location": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
                }
              }
            ]
          }
        },
        {
          "type": "peer",
          "name": "@capacitor/core",
          "spec": "^3.0.0",
          "from": {
            "name": "capacitor-voice-recorder",
            "version": "2.2.0",
            "location": "node_modules/capacitor-voice-recorder",
            "isWorkspace": false,
            "dependents": [
              {
                "type": "prod",
                "name": "capacitor-voice-recorder",
                "spec": "^2.2.0",
                "from": {
                  "location": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
                }
              }
            ]
          }
        },
        {
          "type": "prod",
          "name": "@capacitor/core",
          "spec": "4.0.1",
          "error": "INVALID",
          "from": {
            "location": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
          }
        }
      ]
    },
    "peer": {
      "name": "@capacitor/core",
      "version": "4.0.1",
      "whileInstalling": {
        "name": "simplify-pilot",
        "version": "0.0.1",
        "path": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
      },
      "location": "node_modules/@capacitor/core",
      "isWorkspace": false,
      "dependents": [
        {
          "type": "peer",
          "name": "@capacitor/core",
          "spec": "^4.0.0",
          "from": {
            "name": "@capacitor/android",
            "version": "4.0.1",
            "whileInstalling": {
              "name": "simplify-pilot",
              "version": "0.0.1",
              "path": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
            },
            "location": "node_modules/@capacitor/android",
            "isWorkspace": false,
            "dependents": [
              {
                "type": "prod",
                "name": "@capacitor/android",
                "spec": "4.0.1",
                "error": "INVALID",
                "from": {
                  "location": "c:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot"
                }
              }
            ]
          }
        }
      ]
    }
  },
  "strictPeerDeps": false,
  "force": false,
  "isMine": true
}

And here's my package.json:

{
  "name": "simplify-pilot",
  "version": "0.0.1",
  "author": "Skill Blaster",
  "homepage": "https://simplify.study/",
  "main": "json5/lib/index.js",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "test": "ng test",
    "lint": "ng lint",
    "e2e": "ng e2e"
  },
  "private": true,
  "dependencies": {
    "@angular/common": "~13.2.2",
    "@angular/core": "~13.2.2",
    "@angular/fire": "^7.3.0",
    "@angular/forms": "~13.2.2",
    "@angular/platform-browser": "~13.2.2",
    "@angular/platform-browser-dynamic": "~13.2.2",
    "@angular/router": "~13.2.2",
    "@awesome-cordova-plugins/android-permissions": "5.41.0",
    "@awesome-cordova-plugins/device": "^5.41.0",
    "@awesome-cordova-plugins/native-audio": "^5.44.0",
    "@awesome-cordova-plugins/sms": "^5.41.0",
    "@capacitor-community/camera-preview": "^3.0.0",
    "@capacitor-community/contacts": "^1.1.3",
    "@capacitor/android": "3.4.3",
    "@capacitor/app": "1.1.1",
    "@capacitor/camera": "^1.3.1",
    "@capacitor/core": "^3.4.3",
    "@capacitor/haptics": "^1.1.4",
    "@capacitor/ios": "3.4.3",
    "@capacitor/keyboard": "1.2.2",
    "@capacitor/network": "^1.0.7",
    "@capacitor/push-notifications": "^1.0.9",
    "@capacitor/splash-screen": "^1.2.2",
    "@capacitor/status-bar": "1.0.8",
    "@capacitor/storage": "^1.2.5",
    "@ionic-native/uid": "^5.36.0",
    "@ionic/angular": "^6.0.0",
    "aws-sdk": "^2.1103.0",
    "buffer": "^6.0.3",
    "capacitor-voice-recorder": "^2.2.0",
    "cordova-plugin-android-permissions": "^1.1.3",
    "cordova-plugin-device": "^2.1.0",
    "cordova-plugin-nativeaudio": "^3.0.9",
    "cordova-plugin-uid": "^1.3.0",
    "cordova-sms-plugin": "^1.0.2",
    "core-js": "^3.24.1",
    "firebase": "^9.6.10",
    "formidable": "^3.2.4",
    "google-libphonenumber": "^3.2.27",
    "ng2-search-filter": "^0.5.1",
    "ngx-image-compress": "^13.1.9",
    "querystring": "^0.2.1",
    "rxjs": "~6.6.0",
    "superagent": "^8.0.0",
    "tslib": "^2.2.0",
    "util": "^0.12.4",
    "uuid": "^8.3.2",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "^13.3.9",
    "@angular-eslint/builder": "^12.2.1",
    "@angular-eslint/eslint-plugin": "~13.0.1",
    "@angular-eslint/eslint-plugin-template": "~13.0.1",
    "@angular-eslint/template-parser": "~13.0.1",
    "@angular/cli": "~13.2.3",
    "@angular/compiler": "~13.2.2",
    "@angular/compiler-cli": "~13.2.2",
    "@angular/language-service": "~13.2.2",
    "@capacitor/cli": "^3.4.3",
    "@ionic/angular-toolkit": "^6.0.0",
    "@ionic/cli": "6.19.0",
    "@types/jasmine": "~3.6.0",
    "@types/jasminewd2": "~2.0.3",
    "@types/node": "^12.11.1",
    "@typescript-eslint/eslint-plugin": "5.3.0",
    "@typescript-eslint/parser": "5.3.0",
    "cordova-res": "0.15.4",
    "eslint": "^7.6.0",
    "eslint-plugin-import": "2.22.1",
    "eslint-plugin-jsdoc": "30.7.6",
    "eslint-plugin-prefer-arrow": "1.2.2",
    "jasmine-core": "~3.8.0",
    "jasmine-spec-reporter": "~5.0.0",
    "karma": "~6.3.2",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage": "~2.0.3",
    "karma-coverage-istanbul-reporter": "~3.0.2",
    "karma-jasmine": "~4.0.0",
    "karma-jasmine-html-reporter": "^1.5.0",
    "ts-node": "~8.3.0",
    "typescript": "~4.4.4"
  },
  "description": "Simplify - Get Help When You Need It. Helping students getting unstuck in homework and exam prep."
}
IT-MikeS commented 2 years ago

@morsagmon How are you doing the migration? For your use case you would need to update the @capacitor/ dependancies by changing all of them to ^4.0.1 and then change all your @capacitor-community/ plugins to their new releases or pre-releases. Then just to be sure remove your node_modules folder and package-lock.json and then run your npm install

morsagmon commented 2 years ago

@morsagmon How are you doing the migration? For your use case you would need to update the @capacitor/ dependancies by changing all of them to ^4.0.1 and then change all your @capacitor-community/ plugins to their new releases or pre-releases. Then just to be sure remove your node_modules folder and package-lock.json and then run your npm install

Thanks, Mike. I accepted the ionic plugin recommendation to upgrade to capacitor 4, after I cleared node_modules and re-installed. I'm on capacitor 3 now.

I'm not sure I know how to follow your suggestions: "you would need to update the @capacitor/ dependancies by changing all of them to ^4.0.1 and then change all your @capacitor-community/ plugins to their new releases or pre-releases".

(Anyways, I thought the idea of the ionic upgrade was to do the upgrades to 4.0.1. Do I need to do these upgrades myself before I kick in the ionic migration script?).

Can you please offer more details on these, how do I do this? or do you mean simply "npm install capacitor-community..@latest" to re-install the capacitor modules to their latest?

jm8985 commented 2 years ago

I have the same issue when upgrading via the vscode ionic pane:

# npm resolution error report

2022-08-12T01:09:07.572Z

While resolving: gff-admin@0.0.1
Found: @capacitor/core@4.0.1
node_modules/@capacitor/core
  @capacitor/core@"4.0.1" from the root project

Could not resolve dependency:
peer @capacitor/core@"^3.0.0" from @capacitor/storage@1.2.5
node_modules/@capacitor/storage
  @capacitor/storage@"*" from the root project

Fix the upstream dependency conflict, or retry
this command with --force, or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

Raw JSON explanation object:

{
  "code": "ERESOLVE",
  "current": {
    "name": "@capacitor/core",
    "version": "4.0.1",
    "whileInstalling": {
      "name": "gff-admin",
      "version": "0.0.1",
      "path": "/Users/jacobmiller/repos/gff-admin"
    },
    "location": "node_modules/@capacitor/core",
    "isWorkspace": false,
    "dependents": [
      {
        "type": "prod",
        "name": "@capacitor/core",
        "spec": "4.0.1",
        "from": {
          "location": "/Users/jacobmiller/repos/gff-admin"
        }
      }
    ]
  },
  "currentEdge": {
    "type": "prod",
    "name": "@capacitor/core",
    "spec": "4.0.1",
    "from": {
      "location": "/Users/jacobmiller/repos/gff-admin"
    }
  },
  "edge": {
    "type": "peer",
    "name": "@capacitor/core",
    "spec": "^3.0.0",
    "error": "INVALID",
    "from": {
      "name": "@capacitor/storage",
      "version": "1.2.5",
      "whileInstalling": {
        "name": "gff-admin",
        "version": "0.0.1",
        "path": "/Users/jacobmiller/repos/gff-admin"
      },
      "location": "node_modules/@capacitor/storage",
      "isWorkspace": false,
      "dependents": [
        {
          "type": "prod",
          "name": "@capacitor/storage",
          "spec": "*",
          "from": {
            "location": "/Users/jacobmiller/repos/gff-admin"
          }
        }
      ]
    }
  },
  "strictPeerDeps": false,
  "force": false
}
  "name": "gff-admin",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "serve": "vue-cli-service serve",
    "build": "vue-cli-service build",
    "test:unit": "vue-cli-service test:unit",
    "test:e2e": "vue-cli-service test:e2e",
    "lint": "vue-cli-service lint",
    "ionic:build": "npm run build",
    "ionic:serve": "npm run serve"
  },
  "dependencies": {
    "@capacitor/app": "4.0.1",
    "@capacitor/camera": "^4.0.1",
    "@capacitor/cli": "4.0.1",
    "@capacitor/core": "4.0.1",
    "@capacitor/haptics": "4.0.1",
    "@capacitor/keyboard": "4.0.1",
    "@capacitor/status-bar": "4.0.1",
    "@ionic/pwa-elements": "^3.1.1",
    "@ionic/vue": "^6.1.10",
    "@ionic/vue-router": "^6.1.10",
    "@sentry/tracing": "^7.4.1",
    "@sentry/vue": "^7.4.1",
    "axios": "^0.21.1",
    "chart.js": "^3.7.1",
    "core-js": "^3.6.5",
    "date-fns": "^2.28.0",
    "install": "^0.13.0",
    "minio": "^7.0.28",
    "primeicons": "^5.0.0",
    "primevue": "^3.12.5",
    "pusher-js": "^7.1.1-beta",
    "vue": "^3.2.21",
    "vue-loader-v16": "^16.0.0-beta.5.4",
    "vue-router": "^4.0.0-0",
    "vuex": "^4.0.0-rc.2"
  },
  "devDependencies": {
    "@ionic/cli": "6.20.1",
    "@ionic/prettier-config": "^2.0.0",
    "@vue/cli-plugin-babel": "~4.5.0",
    "@vue/cli-plugin-e2e-cypress": "~4.5.0",
    "@vue/cli-plugin-eslint": "~4.5.0",
    "@vue/cli-plugin-router": "~4.5.0",
    "@vue/cli-plugin-unit-jest": "~4.5.0",
    "@vue/cli-service": "~4.5.0",
    "@vue/compiler-sfc": "^3.0.0-0",
    "@vue/test-utils": "^2.0.0-0",
    "eslint": "^6.7.2",
    "eslint-plugin-vue": "^7.0.0-0",
    "vue-jest": "^5.0.0-0"
  },
  "description": "GoFoodFast POS"
}
jm8985 commented 2 years ago

I should point out that the ionic getting started tutorial also fails with the same capacitor package errors. Near the middle, it asks you to install storage: npm install @capacitor/camera @capacitor/storage @capacitor/filesystem which throws the package error.

morsagmon commented 2 years ago

Finally the --force flag did the trick. Here's what solved this for me: (instead of "del" use "rd -rf" on linux...)

IT-MikeS commented 2 years ago

I should point out that the ionic getting started tutorial also fails with the same capacitor package errors.

Near the middle, it asks you to install storage: npm install @capacitor/camera @capacitor/storage @capacitor/filesystem which throws the package error.

@capacitor/storage was renamed to @capacitor/preferences you'll need to replace all references of storage with preferences.

Docs: https://capacitorjs.com/docs/updating/4-0#storage

jcesarmobile commented 2 years ago

This is caused because some of your plugins are not updated for capacitor 4 yet.

As workaround you can run npm install --force to force npm to use the dependencies in your package.json until the plugins get updated for capacitor 4

morsagmon commented 2 years ago

This is caused because some of your plugins are not updated for capacitor 4 yet.

As workaround you can run npm install --force to force npm to use the dependencies in your package.json until the plugins get updated for capacitor 4

Thanks. I ended up installing afresh a new project with capacitor 4 and all plugins @latest. I found out that the capacitor voice recorder is not really supported on capacitor 4, and I'm stuck with this issue - don't know how to resolve.

khaledelbahay commented 2 years ago

i will follow your suggestion , as i was stucking with same issues

chiraganand commented 2 years ago

This is caused because some of your plugins are not updated for capacitor 4 yet. As workaround you can run npm install --force to force npm to use the dependencies in your package.json until the plugins get updated for capacitor 4

Thanks. I ended up installing afresh a new project with capacitor 4 and all plugins @latest. I found out that the capacitor voice recorder is not really supported on capacitor 4, and I'm stuck with this issue - don't know how to resolve.

Looks like another voice recorder plugin has been upgraded for Capacitor v4: https://www.npmjs.com/package/capacitor-voice-recorder

ionitron-bot[bot] commented 1 year ago

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.