skip to Main Content

Started getting an error from the Google sign in script all of a sudden.

Error at _.$e in https://accounts.google.com/gsi/client

2

Answers


  1. Chosen as BEST ANSWER

    It seems like Google has changed the type of renderButton width from string to number.

    Broken:

    window.google.accounts.id.renderButton(button, {width: '200'});
    

    Working:

    window.google.accounts.id.renderButton(button, {width: 200});
    

    They haven't updated the documentation: https://developers.google.com/identity/gsi/web/reference/js-reference#width


  2. The recent update broke it if you specified the button width in a string format without the ‘px’ suffix.

    window.google.accounts.id.renderButton(button, {width: '300px'});
    

    should work.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search