CapacitorGoogleAuth icon indicating copy to clipboard operation
CapacitorGoogleAuth copied to clipboard

Error with newer Capacitor versions

Open MauriceNino opened this issue 4 years ago • 4 comments

In newer capacitor versions, the capacitor.config.json seems to be missing. There is a capacitor.config.ts instead.

During build, I get the following error:

./node_modules/@codetrix-studio/capacitor-google-auth/dist/esm/web.js:3:0-58 - Error: Module not found: Error: Can't resolve '../../../../../capacitor.config.json' in 'XXXXXXXXX\node_modules\@codetrix-studio\capacitor-google-auth\dist\esm'

MauriceNino avatar Jul 10 '21 14:07 MauriceNino

Yes, you currently can't use the new Feature of Capacitor with a typed config. Until #114 is merged you can only use the "old" way of a JSON-Config.

NLueg avatar Jul 12 '21 02:07 NLueg

@NLueg Yes, I created a json file with Google Auth Config information. Now, It works for web. not for android? I saw the white loading screen. It is fixed or not? When it will be fixed because, i don't have much time. Please help me to resolve this asap.

Thanks.

Capacitor Version: 3.1.1

iamkbkarthikeyan avatar Jul 24 '21 12:07 iamkbkarthikeyan

@iamkbkarthikeyan does it worked for you on previous Capacitor versions? Or did you started directly with Capacitor v3? If you are newly using this problem probably your configuration is not correct. It is sometimes very tricky to make it work natively for Android. Maybe the discussion in issue #110 helps you.

NLueg avatar Jul 25 '21 07:07 NLueg

@NLueg It was newly created capacitor 3 Project. I used web key on strings.xml Let me check the config once.

iamkbkarthikeyan avatar Jul 25 '21 08:07 iamkbkarthikeyan