Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on Missing REquired client_id Despite being set #14

Closed
lewismunene020 opened this issue Oct 27, 2023 · 21 comments
Closed

Error on Missing REquired client_id Despite being set #14

lewismunene020 opened this issue Oct 27, 2023 · 21 comments
Labels
bug Something isn't working triage

Comments

@lewismunene020
Copy link

I keep getting this error in development and i have already set the parameter whats might be the problem its probably a bug

Uncaught (in promise) 
Object { message: "Missing required parameter client_id.", stack: "Bp@https://accounts.google.com/gsi/client:229:367\nCp@https://accounts.google.com/gsi/client:222:467\nMq@https://accounts.google.com/gsi/client:280:395\nUq@https://accounts.google.com/gsi/client:284:450\n@https://accounts.google.com/gsi/client:288:754\nuseTokenClient/<@http://192.168.1.103:3000/_nuxt/node_modules/.cache/vite/client/deps/vue3-google-signin.js?v=9ea727e1:347:73\ncallWithErrorHandling@http://192.168.1.103:3000/_nuxt/node_modules/.cache/vite/client/deps/chunk-RAKT47ZN.js?v=f15bec11:1565:18

@kasvith
Copy link
Collaborator

kasvith commented Oct 30, 2023

hi, this is related to #11

@kasvith
Copy link
Collaborator

kasvith commented Oct 30, 2023

btw can you reproduce this in prod? or this only affects in dev mode?

@lewismunene020
Copy link
Author

lewismunene020 commented Oct 31, 2023 via email

@ibrahimrehman1
Copy link

Hi @kasvith Any luck on this? I am having the same issue

@kasvith
Copy link
Collaborator

kasvith commented Nov 2, 2023

Hi @ibrahimrehman1 not yet. we couldn't identify the issue yet.

@kasvith
Copy link
Collaborator

kasvith commented Nov 2, 2023

at this point im wondering whether this is an upstream issue in nuxt itself

@ibrahimrehman1 is this only happening in dev mode?

@ibrahimrehman1
Copy link

Yeah I am in dev mode and it's not working. It's strange it was working fine a while ago but then I merge my changes with some other developer and it stopped working however nothing crucial was changed during that merge. Though I might be wrong

@kasvith
Copy link
Collaborator

kasvith commented Nov 2, 2023

hmm these reports came very recently...i still cant figure out why its happening

@lewismunene020
Copy link
Author

lewismunene020 commented Nov 4, 2023 via email

@kasvith
Copy link
Collaborator

kasvith commented Nov 4, 2023 via email

@kasvith
Copy link
Collaborator

kasvith commented Nov 6, 2023

Hi @ibrahimrehman1 @lewismunene020 can you check with nuxt3.8.1 ? as per #11 (comment)

@lewismunene020
Copy link
Author

lewismunene020 commented Nov 6, 2023 via email

@kasvith
Copy link
Collaborator

kasvith commented Nov 6, 2023

Hi @ibrahimrehman1 @lewismunene020 can you test v0.0.10 and verify it works?

@ibrahimrehman1
Copy link

Hi @kasvith I forgot to update here but the issue was somehow resolved automatically without me changing the nuxt version or this package version few days ago. I am currently in dev mode and things are working fine now, strange 🤷‍♂️

@kasvith
Copy link
Collaborator

kasvith commented Nov 6, 2023

idk...i double checked...i was in the dev mode in my local env and it worked fine. but after I publish to npm it doesn't work properly

this error reported recently...before that it was just fine

@kasvith
Copy link
Collaborator

kasvith commented Nov 6, 2023

i made a weird observation

import { defineNuxtPlugin, useRuntimeConfig } from "#app";
export default defineNuxtPlugin(async (nuxtApp) => {
  console.log("nuxt-vue3-google-signin plugin"); // this console log make it works
  const { googleSignIn } = useRuntimeConfig().public;
  if (googleSignIn) {
    const plugin = await import("vue3-google-signin");
    nuxtApp.vueApp.use(plugin.default, { clientId: googleSignIn.clientId });
  }
});

removing it causes the problem in dev mode again

@kasvith
Copy link
Collaborator

kasvith commented Nov 6, 2023

Lets close this and track it #11

@kasvith kasvith closed this as completed Nov 6, 2023
@lewismunene020
Copy link
Author

lewismunene020 commented Nov 7, 2023 via email

@kasvith
Copy link
Collaborator

kasvith commented Nov 7, 2023

@lewismunene020 i think issue is still there, check the other thread

@lewismunene020
Copy link
Author

But it the funny thing is that it disappears once you restart the server

@kasvith
Copy link
Collaborator

kasvith commented Nov 7, 2023 via email

@kasvith kasvith added bug Something isn't working triage labels Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage
Projects
None yet
Development

No branches or pull requests

3 participants