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

Support React 19 #375

Open
IsaacInsoll opened this issue Jul 24, 2024 · 5 comments
Open

Support React 19 #375

IsaacInsoll opened this issue Jul 24, 2024 · 5 comments

Comments

@IsaacInsoll
Copy link

I've upgraded to React 19 and am now getting the following error in the console with the page not rendering at all

Uncaught TypeError: Cannot read properties of undefined (reading 'ReactCurrentOwner')
    at requireReactJsxRuntime_production_min (react-grid-gallery.js?v=75288887:48:210)
    at react-grid-gallery.js?v=75288887:64:30
    at react-grid-gallery.js?v=75288887:12:70
    at node_modules/react-grid-gallery/dist/react-grid-gallery.umd.js (react-grid-gallery.js?v=75288887:13:7)
    at __require (chunk-EQCVQC35.js?v=75288887:9:50)
    at react-grid-gallery.js?v=75288887:422:16
@IsaacInsoll
Copy link
Author

I'm not sure if this helps but:

I uninstalled the react-grid-gallery dependency and manually copied the src folder into my project and everything worked fine, so I believe your source code is fine but something about how this is packaged for dist is causing the problem that breaks in react 19.

@ullaskunder1
Copy link

any other solution?

@nemanjam
Copy link

I get this in Astro:

[astro-island] Error hydrating /_astro/Gallery.BQvI7pDl.js TypeError: c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED is undefined
    f Gallery.BQvI7pDl.js:formatted:82
    Wt Gallery.BQvI7pDl.js:formatted:119
    Wt Gallery.BQvI7pDl.js:formatted:29
    Wt Gallery.BQvI7pDl.js:formatted:31
    Wt Gallery.BQvI7pDl.js:formatted:750
    <anonymous> Gallery.BQvI7pDl.js:formatted:754
gallery:196:3459
    start http://localhost:3000/gallery/:196

@linhtv97
Copy link

Is there any solution for this?
Nextjs: 15
React-React dom: 19

@anthony-df-nguyen
Copy link

I'm not sure if this helps but:

I uninstalled the react-grid-gallery dependency and manually copied the src folder into my project and everything worked fine, so I believe your source code is fine but something about how this is packaged for dist is causing the problem that breaks in react 19.

This worked for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants