Open leonburman opened 1 year ago
@leonburman Gatsby v5 is not specified as a peer dependency here, but if you force install it it seems to work fine (at least I didn't notice any issues in my project)
The README states they don't intend to support it:
Loadable https://github.com/gregberge/loadable-components/issues/718 and Gatsby v5 will require React 18. React 18 ships with React.lazy which performs the same code-splitting + SSR that we are accomplishing here. There are no plans to write compatibility for React 18 / Gatsby 5 with this plugin, so the migration path should be one to React.lazy. This should result in an overall simpler implementation, and should be considered a positive that this plugin will no longer be needed.
I'm hoping to upgrade to Gatsby v5 soon but this plugin doesn't currently support it.