i have the same bug, i'm working on Next 15.5.4 and thanks to your answer and add the webpack configuration without delete the turbopack configuration it work fine.
I'm sharing the next.config.ts for this Next version.
import type { NextConfig } from 'next';
const nextConfig: NextConfig = {
/* config options here */
turbopack: {
rules: {
'*.svg': {
loaders: ['@svgr/webpack'],
as: '*.tsx',
},
},
},
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack'],
});
return config;
},
};
export default nextConfig;