Turbopack renders incorrect SVGs when multiple are imported via @svgr/webpack #78675
Labels
linear: turbopack
Confirmed issue that is tracked by the Turbopack team.
Turbopack
Related to Turbopack with Next.js.
Link to the code that reproduces this issue
https://github.com/lukevella/turbopack-svgr-issue
To Reproduce
git clone https://github.com/lukevella/turbopack-svgr-issue.git cd turbopack-svgr-issue
pnpm dev
, and observe that the three different SVGs are rendered correctly.Current vs. Expected behavior
The SVG that was imported last is rendered in place of all other SVGs on the same page.
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 24.3.0: Thu Jan 2 20:24:22 PST 2025; root:xnu-11215.81.4~3/RELEASE_ARM64_T6041 Available memory (MB): 24576 Available CPU cores: 12 Binaries: Node: 20.18.1 npm: 10.8.2 Yarn: N/A pnpm: 10.9.0 Relevant Packages: next: 15.3.1 // Latest available version is detected (15.3.1). eslint-config-next: N/A react: 19.1.0 react-dom: 19.1.0 typescript: 5.8.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response
The text was updated successfully, but these errors were encountered: