Closed titouancreach closed 3 months ago
Can you include a cloneable repository? You likely have multiple versions of the react
package installed.
Yes sure and sorry for the delay:
I've created a new app with next-create-app, then added svgr.
To run:
You're using next@14.2.3
which does not support React 19. You need at least next@14.3.0-canary.45
Once I install next@14.3.0-canary.45
and the required React version (exact 19.0.0-beta-4508873393-20240430
), it works.
@eps1lon OK thanks very much. Where did you find this info ?
and sorry for the noise !
I implemented support for React 19 in Next.js. We don't have a list of compatible libraries/frameworks yet.
Ok I understand, thanks again
Summary
Hello,
Svg (imported with @svgr/webpack) are not renderable anymore (since react 19 beta (alpha was ok)), this is the code produced by the webpack loader:
React throws:
I followed the migration guide and I've seen no mention of this. I think it's an issues since a lot of project (in my experience) use this.
Thanks Kind