Next
Next

How to fix "Module not found" errors with SCSS imports in Turbopack

November 28, 2025

Turbopack fails SCSS @import resolution (e.g., Bootstrap) due to stricter aliasing than Webpack; use turbopack.resolveAlias: { '~*': '*' } or explicit loaders for wildcard imports.

Example:-

Code

// next.config.ts
const nextConfig = {
  turbopack: {
    resolveAlias: {
      '~*': '*',  // Fixes @import 'bootstrap/*'
    },
    rules: {
      '*.scss': { loaders: ['sass'] },
    },
  },
};
export default nextConfig;
      
Hire Now!

Need Help with Next Development ?

Ready to leverage the power of conversational AI? Start your project with Zignuts expert AI developers.
bg-image
download-image
Company Deck
PDF, 3MB
© 2026 Zignuts Technolab. All Rights Reserved.
branch imagesbranch imagesbranch imagesbranch imagesbranch imagesbranch images