carloscuesta / gitmoji

An emoji guide for your commit messages. 😜
https://gitmoji.dev
MIT License
15.63k stars 799 forks source link

Production site has Uncaught Error #1396

Closed homersimpsons closed 1 year ago

homersimpsons commented 1 year ago

Describe the bug

When navigating on https://gitmoji.dev/ we can see a lot of JavaScript errors in the console:

Uncaught Error: Minified React error #425; visit https://reactjs.org/docs/error-decoder.html?invariant=425 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    NextJS 29
framework-19f3649580393c10.js:9:40169

Uncaught Error: Minified React error #418; visit https://reactjs.org/docs/error-decoder.html?invariant=418 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    NextJS 28
76 framework-19f3649580393c10.js:9:46422

Uncaught Error: Minified React error #423; visit https://reactjs.org/docs/error-decoder.html?invariant=423 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    NextJS 28
framework-19f3649580393c10.js:9:120828

image

Reproduction

  1. Open developer console (F12)
  2. Navigate to https://gitmoji.dev/
  3. Observe the errors in your console

System Info

(not relevant)

Validations

carloscuesta commented 1 year ago

Hey!

Thanks for reporting this, I'm not able to see any of the warnings you mention on the console.

Can you share more information about your environment such as browser and so on?

I believe this can be caused by something rendered on client-side that it's not sent by the server.

CleanShot 2023-04-02 at 22 14 39@2x

Thanks!

homersimpsons commented 1 year ago

Can you share more information about your environment such as browser and so on?

I can reproduce it consistently on Mozilla Firefox in private navigation as well as on Microsoft Edge on private navigation too

On both I can see the following warning after the above errors:

# Firefox
The resource at “https://cdn.carbonads.com/carbon.js?serve=CE7DL5QJ&placement=gitmojidev” was blocked because content blocking is enabled.
# Edge
Tracking Prevention blocked access to storage for https://cdn.carbonads.com/carbon.js?serve=CE7DL5QJ&placement=gitmojidev.

On Firefox I also can see the following message before the errors:

Google Analytics and Tag Manager is being shimmed by Firefox. See https://bugzilla.mozilla.org/show_bug.cgi?id=1713687 for details.
vhoyer commented 1 year ago

@carloscuesta, I've seen on some PRs that were opened recently that we have some hydration problem (difference between CSR and SSR), and if you haven't fixed it yet, it's probably still on the main branch, maybe this could be related

carloscuesta commented 1 year ago

Can you share more information about your environment such as browser and so on?

I can reproduce it consistently on Mozilla Firefox in private navigation as well as on Microsoft Edge on private navigation too

On both I can see the following warning after the above errors:

# Firefox
The resource at “https://cdn.carbonads.com/carbon.js?serve=CE7DL5QJ&placement=gitmojidev” was blocked because content blocking is enabled.
# Edge
Tracking Prevention blocked access to storage for https://cdn.carbonads.com/carbon.js?serve=CE7DL5QJ&placement=gitmojidev.

On Firefox I also can see the following message before the errors:

Google Analytics and Tag Manager is being shimmed by Firefox. See https://bugzilla.mozilla.org/show_bug.cgi?id=1713687 for details.

Hey!

This seems to be related with some browsers blocking the Ad we have on the site. But I'll try to reproduce the warning you mentioned with Firefox.

homersimpsons commented 1 year ago

This seems to be related with some browsers blocking the Ad we have on the site.

This is possible, I do not have any extension though, just private navigation

carloscuesta commented 1 year ago

Hey! I'm not able to reproduce neither in Safari / Firefox with the content blocking enabled:

CleanShot 2023-04-03 at 19 56 03@2x CleanShot 2023-04-03 at 19 53 11@2x

I think I might now were the problem might be coming from but it shouldn't break anything aside from logging into the console

homersimpsons commented 1 year ago

Hey! I'm not able to reproduce neither in Safari / Firefox with the content blocking enabled

On Firefox I have:

I think I might now were the problem might be coming from but it shouldn't break anything aside from logging into the console

It is not breaking anything, this is just logs as far as I see.

I do not know if the new version is deployed but I still have the issue and it looks like files hash are still the same.

homersimpsons commented 1 year ago

I confirm I still have this issue today. Feel free to close it if you do not want to dig further as this does not block anything on the site.

carloscuesta commented 1 year ago

Hey @homersimpsons if you're able to reproduce it locally I would be more than happy to receive a PR that fixes the issue 🤗