{"record":{"id":"d81159574f35face","repo":"vercel/next.js","slug":"experimental-lightningcssfeatures-is-set-but-exper","errorCode":null,"errorMessage":"experimental.lightningCssFeatures is set but experimental.useLightningcss is not enabled. The lightningCssFeatures option has no effect without useLightningcss.","messagePattern":"experimental\\.lightningCssFeatures is set but experimental\\.useLightningcss is not enabled\\. The lightningCssFeatures option has no effect without useLightningcss\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/next/src/server/config.ts","lineNumber":2164,"sourceCode":"    }\n\n    if ((userConfig as any).target && (userConfig as any).target !== 'server') {\n      throw new Error(\n        `The \"target\" property is no longer supported in ${configFileName}.\\n` +\n          'See more info here https://nextjs.org/docs/messages/deprecated-target-config'\n      )\n    }\n\n    if (reactProductionProfiling) {\n      userConfig.reactProductionProfiling = reactProductionProfiling\n    }\n\n    if (\n      userConfig.experimental?.lightningCssFeatures &&\n      !userConfig.experimental?.useLightningcss &&\n      bundler !== Bundler.Turbopack\n    ) {\n      curLog.warn(\n        `experimental.lightningCssFeatures is set but experimental.useLightningcss is not enabled. ` +\n          `The lightningCssFeatures option has no effect without useLightningcss.`\n      )\n    }\n\n    if (\n      phase !== PHASE_PRODUCTION_SERVER &&\n      userConfig.experimental?.useLightningcss\n    ) {\n      const { loadBindings } =\n        require('../build/swc') as typeof import('../build/swc')\n      const isLightningSupported = (\n        await loadBindings(userConfig.experimental?.useWasmBinary)\n      )?.css?.lightning\n\n      if (!isLightningSupported) {\n        curLog.warn(\n          `experimental.useLightningcss is set, but the setting is disabled because next-swc/wasm does not support it yet.`","sourceCodeStart":2146,"sourceCodeEnd":2182,"githubUrl":"https://github.com/vercel/next.js/blob/258b1c1bc05f7099816b88f70b7b3422b24a4b8d/packages/next/src/server/config.ts#L2146-L2182","documentation":"Config warning during load: experimental.lightningCssFeatures is set, but experimental.useLightningcss is not enabled (and the bundler is not Turbopack). The features object only customizes Lightning CSS processing; without Lightning CSS actually enabled the option is inert, so the warning explains it has no effect.","triggerScenarios":"Thrown at packages/next/src/server/config.ts:2119 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Enable `experimental.useLightningcss` to make lightningCssFeatures take effect, or remove lightningCssFeatures."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"258b1c1bc05f7099816b88f70b7b3422b24a4b8d","analyzedAt":"2026-08-19T02:10:13.922Z","contentChangedAt":"2026-08-19T02:10:13.922Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}