CodetrixStudio / CapacitorGoogleAuth

Capacitor plugin for Google Auth. Lightweight & no dependencies.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not able to install @codetrix-studio/capacitor-google-auth in my project

narottamgoyal opened this issue · comments

I created a new ionic project with the latest version. And when I try to install this package. I get an error.

npm i @codetrix-studio/capacitor-google-auth --save

On executing the above command with --force or --legacy-peer-deps. I was able to run the command. But then not able to resolve GoogleAuth.class inside MainActivity.java

Cannot resolve symbol codetrixstudio

com.codetrixstudio.capacitor.GoogleAuth.GoogleAuth
Capacitor Doctor

Latest Dependencies:

  @capacitor/cli: 5.0.4
  @capacitor/core: 5.0.4
  @capacitor/android: 5.0.4
  @capacitor/ios: 5.0.4

Installed Dependencies:

  @capacitor/ios: not installed
  @capacitor/cli: 5.0.3
  @capacitor/android: 5.0.3
  @capacitor/core: 5.0.3

Errors:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: my-service@0.0.1
npm ERR! Found: @capacitor/core@5.0.4
npm ERR! node_modules/@capacitor/core
npm ERR!   @capacitor/core@"^5.0.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @capacitor/core@"^4" from @codetrix-studio/capacitor-google-auth@3.2.2
npm ERR! node_modules/@codetrix-studio/capacitor-google-auth
npm ERR!   @codetrix-studio/capacitor-google-auth@"*" 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.

Other Technical Details

package.json

npm --version output: 9.6.7

node --version output: v18.16.0

Additional Context

package.json.txt

Duplicate of #279, but you nicely included a stack trace :) Have a look at the other issue, it mentions a solution.