google-adsense icon indicating copy to clipboard operation
google-adsense copied to clipboard

Hydration mismatch

Open MarcoTroost opened this issue 1 year ago • 3 comments

Hi!

The AdSense module in my Nuxt3 app results in a hydration mismatch.

One would think that wrapping the AdsByGoogle tag <ClientOnly> would help:

<ClientOnly>
  <AdsByGoogle />
</ClientOnly>

The hydration messages disappears, but then AdSense gives the following error:

Uncaught TagError: adsbygoogle.push() error: All 'ins' elements in the DOM with class=adsbygoogle already have ads in them.

Eitherway, i get errors logged to the console.

Does anyone know how to fix this?

kind regards, Marco

MarcoTroost avatar Sep 10 '24 05:09 MarcoTroost

I'm encountering the same issue as well

jim55167 avatar Sep 11 '24 02:09 jim55167

I think this module is already obsolete. No support for this problem?

valere-hope avatar Oct 02 '24 17:10 valere-hope

Same. Also for me , ads (in same spot/placeholder) are sometimes loaded , sometimes not on PRODUCTION. No network errors.

bloor avatar Oct 09 '24 11:10 bloor