blinkcard / blinkcard-capacitor

AI-driven credit card scanning for cross-platform apps built with Capacitor.
3 stars 2 forks source link

Could not resolve dependency @capacitor/core #1

Open reobando7 opened 3 years ago

reobando7 commented 3 years ago

Hello.

I'm trying to compile an ionic app that is using BlinkCard but I'm getting an error when it is installing the dependencies, here is the trace:

ionic cap build android --prod

ionic integrations enable capacitor npm i --save -E @capacitor/core@latest npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! Found: @capacitor/core@3.0.0 npm ERR! node_modules/@capacitor/core npm ERR! @capacitor/core@"3.0.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @capacitor/core@"^2.4.7" from @microblink/blinkcard-capacitor@2.3.0 npm ERR! node_modules/@microblink/blinkcard-capacitor npm ERR! @microblink/blinkcard-capacitor@"^2.3.0" 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. npm ERR! npm ERR! See /var/root/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /var/root/.npm/_logs/2021-05-24T17_51_39_485Z-debug.log

I've already tried npm install, reinstalling the library and even deleting the package.json but none of these have worked. Here's my package.json:

{ "name": "tdc", "version": "0.0.1", "author": "Ionic Framework", "homepage": "https://ionicframework.com/", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular/common": "~11.2.0", "@angular/core": "~11.2.0", "@angular/forms": "~11.2.0", "@angular/platform-browser": "~11.2.0", "@angular/platform-browser-dynamic": "~11.2.0", "@angular/router": "~11.2.0", "@capacitor/core": "^2.4.7", "@ionic/angular": "^5.5.2", "@microblink/blinkcard-capacitor": "^2.3.0", "postcss": "^8.3.0", "rxjs": "~6.6.0", "tslib": "^2.0.0", "zone.js": "~0.10.2" }, "devDependencies": { "@angular-devkit/build-angular": "~0.1102.4", "@angular-eslint/builder": "2.0.2", "@angular-eslint/eslint-plugin": "2.0.2", "@angular-eslint/eslint-plugin-template": "2.0.2", "@angular-eslint/template-parser": "2.0.2", "@angular/cli": "~11.2.4", "@angular/compiler": "~11.2.0", "@angular/compiler-cli": "~11.2.0", "@angular/language-service": "~11.2.0", "@ionic/angular-toolkit": "^3.1.1", "@ionic/lab": "3.2.10", "@types/jasmine": "~3.6.0", "@types/jasminewd2": "~2.0.3", "@types/node": "^12.11.1", "@typescript-eslint/eslint-plugin": "4.16.1", "@typescript-eslint/parser": "4.16.1", "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.7.1", "jasmine-spec-reporter": "~5.0.0", "karma": "~5.2.0", "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", "protractor": "~7.0.0", "ts-node": "~8.3.0", "typescript": "~4.0.2" }, "description": "An Ionic project" }

sbairagi commented 3 years ago

npm install @capacitor/core

thats work for me

ukaleem commented 2 years ago

image dependency issue!

MBrizic01 commented 2 years ago

Hello @ukaleem,

Thank you for reaching out. Can you please tell us how are you integrating capacitor plugin into your project and which version of capacitor are you using?

jmdollosa commented 2 years ago

npm install @capacitor/core

thats work for me

In my case I had a fresh Ionic project using Vue and I got the error when running ionic capacitor add android. After running the command above I was able to run ionic capacitor add android

ukaleem commented 2 years ago

Hello @ukaleem,

Thank you for reaching out. Can you please tell us how are you integrating the capacitor plugin into your project and which version of the capacitor are you using?

Hello.

I'm trying to compile an ionic app that is using BlinkCard but I'm getting an error when it is installing the dependencies, here is the trace:

ionic cap build android --prod

ionic integrations enable capacitor npm i --save -E @capacitor/core@latest npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! Found: @capacitor/core@3.0.0 npm ERR! node_modules/@capacitor/core npm ERR! @capacitor/core@"3.0.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @capacitor/core@"^2.4.7" from @microblink/blinkcard-capacitor@2.3.0 npm ERR! node_modules/@microblink/blinkcard-capacitor npm ERR! @microblink/blinkcard-capacitor@"^2.3.0" 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. npm ERR! npm ERR! See /var/root/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /var/root/.npm/_logs/2021-05-24T17_51_39_485Z-debug.log

I've already tried npm install, reinstalling the library and even deleting the package.json but none of these have worked. Here's my package.json:

{ "name": "tdc", "version": "0.0.1", "author": "Ionic Framework", "homepage": "https://ionicframework.com/", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular/common": "~11.2.0", "@angular/core": "~11.2.0", "@angular/forms": "~11.2.0", "@angular/platform-browser": "~11.2.0", "@angular/platform-browser-dynamic": "~11.2.0", "@angular/router": "~11.2.0", "@capacitor/core": "^2.4.7", "@ionic/angular": "^5.5.2", "@microblink/blinkcard-capacitor": "^2.3.0", "postcss": "^8.3.0", "rxjs": "~6.6.0", "tslib": "^2.0.0", "zone.js": "~0.10.2" }, "devDependencies": { "@angular-devkit/build-angular": "~0.1102.4", "@angular-eslint/builder": "2.0.2", "@angular-eslint/eslint-plugin": "2.0.2", "@angular-eslint/eslint-plugin-template": "2.0.2", "@angular-eslint/template-parser": "2.0.2", "@angular/cli": "~11.2.4", "@angular/compiler": "~11.2.0", "@angular/compiler-cli": "~11.2.0", "@angular/language-service": "~11.2.0", "@ionic/angular-toolkit": "^3.1.1", "@ionic/lab": "3.2.10", "@types/jasmine": "~3.6.0", "@types/jasminewd2": "~2.0.3", "@types/node": "^12.11.1", "@typescript-eslint/eslint-plugin": "4.16.1", "@typescript-eslint/parser": "4.16.1", "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.7.1", "jasmine-spec-reporter": "~5.0.0", "karma": "~5.2.0", "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", "protractor": "~7.0.0", "ts-node": "~8.3.0", "typescript": "~4.0.2" }, "description": "An Ionic project" }

I have found a very cool solution for the dependencies issue I'm 100% sure this will work for everyone,

  1. Install Ionic Extention in your visual studio code

image

  1. See the Recommendation Tab and install/uninstall dependencies with just one click no need to run commands anymore image

There is a lot in this Ionic Official Extensions this fixes all kinds of issues, Try this, and thanks ionic team šŸ˜!

adriangordon1231 commented 1 year ago

Hello @ukaleem, Thank you for reaching out. Can you please tell us how are you integrating the capacitor plugin into your project and which version of the capacitor are you using?

Hello. I'm trying to compile an ionic app that is using BlinkCard but I'm getting an error when it is installing the dependencies, here is the trace: ionic cap build android --prod

ionic integrations enable capacitor npm i --save -E @capacitor/core@latest npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! Found: @capacitor/core@3.0.0 npm ERR! node_modules/@capacitor/core npm ERR! @capacitor/core@"3.0.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @capacitor/core@"^2.4.7" from @microblink/blinkcard-capacitor@2.3.0 npm ERR! node_modules/@microblink/blinkcard-capacitor npm ERR! @microblink/blinkcard-capacitor@"^2.3.0" 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. npm ERR! npm ERR! See /var/root/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /var/root/.npm/_logs/2021-05-24T17_51_39_485Z-debug.log I've already tried npm install, reinstalling the library and even deleting the package.json but none of these have worked. Here's my package.json: { "name": "tdc", "version": "0.0.1", "author": "Ionic Framework", "homepage": "https://ionicframework.com/", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular/common": "~11.2.0", "@angular/core": "~11.2.0", "@angular/forms": "~11.2.0", "@angular/platform-browser": "~11.2.0", "@angular/platform-browser-dynamic": "~11.2.0", "@angular/router": "~11.2.0", "@capacitor/core": "^2.4.7", "@ionic/angular": "^5.5.2", "@microblink/blinkcard-capacitor": "^2.3.0", "postcss": "^8.3.0", "rxjs": "~6.6.0", "tslib": "^2.0.0", "zone.js": "~0.10.2" }, "devDependencies": { "@angular-devkit/build-angular": "~0.1102.4", "@angular-eslint/builder": "2.0.2", "@angular-eslint/eslint-plugin": "2.0.2", "@angular-eslint/eslint-plugin-template": "2.0.2", "@angular-eslint/template-parser": "2.0.2", "@angular/cli": "~11.2.4", "@angular/compiler": "~11.2.0", "@angular/compiler-cli": "~11.2.0", "@angular/language-service": "~11.2.0", "@ionic/angular-toolkit": "^3.1.1", "@ionic/lab": "3.2.10", "@types/jasmine": "~3.6.0", "@types/jasminewd2": "~2.0.3", "@types/node": "^12.11.1", "@typescript-eslint/eslint-plugin": "4.16.1", "@typescript-eslint/parser": "4.16.1", "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.7.1", "jasmine-spec-reporter": "~5.0.0", "karma": "~5.2.0", "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", "protractor": "~7.0.0", "ts-node": "~8.3.0", "typescript": "~4.0.2" }, "description": "An Ionic project" }

I have found a very cool solution for the dependencies issue I'm 100% sure this will work for everyone,

  1. Install Ionic Extention in your visual studio code

image

  1. See the Recommendation Tab and install/uninstall dependencies with just one click no need to run commands anymore image

There is a lot in this Ionic Official Extensions this fixes all kinds of issues, Try this, and thanks ionic team šŸ˜!

This is the only thing that worked for me. Thank you!

tanmayapatra09 commented 1 year ago

Hello @ukaleem, Thank you for reaching out. Can you please tell us how are you integrating the capacitor plugin into your project and which version of the capacitor are you using?

Hello. I'm trying to compile an ionic app that is using BlinkCard but I'm getting an error when it is installing the dependencies, here is the trace: ionic cap build android --prod

ionic integrations enable capacitor npm i --save -E @capacitor/core@latest npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! Found: @capacitor/core@3.0.0 npm ERR! node_modules/@capacitor/core npm ERR! @capacitor/core@"3.0.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @capacitor/core@"^2.4.7" from @microblink/blinkcard-capacitor@2.3.0 npm ERR! node_modules/@microblink/blinkcard-capacitor npm ERR! @microblink/blinkcard-capacitor@"^2.3.0" 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. npm ERR! npm ERR! See /var/root/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /var/root/.npm/_logs/2021-05-24T17_51_39_485Z-debug.log I've already tried npm install, reinstalling the library and even deleting the package.json but none of these have worked. Here's my package.json: { "name": "tdc", "version": "0.0.1", "author": "Ionic Framework", "homepage": "https://ionicframework.com/", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "test": "ng test", "lint": "ng lint", "e2e": "ng e2e" }, "private": true, "dependencies": { "@angular/common": "~11.2.0", "@angular/core": "~11.2.0", "@angular/forms": "~11.2.0", "@angular/platform-browser": "~11.2.0", "@angular/platform-browser-dynamic": "~11.2.0", "@angular/router": "~11.2.0", "@capacitor/core": "^2.4.7", "@ionic/angular": "^5.5.2", "@microblink/blinkcard-capacitor": "^2.3.0", "postcss": "^8.3.0", "rxjs": "~6.6.0", "tslib": "^2.0.0", "zone.js": "~0.10.2" }, "devDependencies": { "@angular-devkit/build-angular": "~0.1102.4", "@angular-eslint/builder": "2.0.2", "@angular-eslint/eslint-plugin": "2.0.2", "@angular-eslint/eslint-plugin-template": "2.0.2", "@angular-eslint/template-parser": "2.0.2", "@angular/cli": "~11.2.4", "@angular/compiler": "~11.2.0", "@angular/compiler-cli": "~11.2.0", "@angular/language-service": "~11.2.0", "@ionic/angular-toolkit": "^3.1.1", "@ionic/lab": "3.2.10", "@types/jasmine": "~3.6.0", "@types/jasminewd2": "~2.0.3", "@types/node": "^12.11.1", "@typescript-eslint/eslint-plugin": "4.16.1", "@typescript-eslint/parser": "4.16.1", "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.7.1", "jasmine-spec-reporter": "~5.0.0", "karma": "~5.2.0", "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", "protractor": "~7.0.0", "ts-node": "~8.3.0", "typescript": "~4.0.2" }, "description": "An Ionic project" }

I have found a very cool solution for the dependencies issue I'm 100% sure this will work for everyone,

  1. Install Ionic Extention in your visual studio code

image

  1. See the Recommendation Tab and install/uninstall dependencies with just one click no need to run commands anymore image

There is a lot in this Ionic Official Extensions this fixes all kinds of issues, Try this, and thanks ionic team heart_eyes!

This is the only thing that worked for me. Thank you!

Thank you, buddy. It worked well.