79794945

Date: 2025-10-20 13:30:57
Score: 0.5
Natty:
Report link

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;
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jaime Andrés Ángel