{"record":{"id":"7ce1fff3bc98adb5","repo":"vercel/next.js","slug":"experimental-uselightningcss-is-set-but-the-setti","errorCode":null,"errorMessage":"experimental.useLightningcss is set, but the setting is disabled because next-swc/wasm does not support it yet.","messagePattern":"experimental\\.useLightningcss is set, but the setting is disabled because next-swc/wasm does not support it yet\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/next/src/server/config.ts","lineNumber":2181,"sourceCode":"    ) {\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.`\n        )\n        userConfig.experimental.useLightningcss = false\n      }\n    }\n\n    // serialize the regex config into string\n    if (userConfig?.htmlLimitedBots instanceof RegExp) {\n      // @ts-expect-error: override the htmlLimitedBots with default string, type covert: RegExp -> string\n      userConfig.htmlLimitedBots = userConfig.htmlLimitedBots.source\n    }\n\n    enforceExperimentalFeatures(userConfig, {\n      isDefaultConfig: false,\n      configuredExperimentalFeatures,\n      debugPrerender,\n      phase,\n    })","sourceCodeStart":2163,"sourceCodeEnd":2199,"githubUrl":"https://github.com/vercel/next.js/blob/258b1c1bc05f7099816b88f70b7b3422b24a4b8d/packages/next/src/server/config.ts#L2163-L2199","documentation":"Config warning during load: experimental.useLightningcss is enabled, but the loaded next-swc bindings (the wasm variant, checked via loadBindings and its css.lightning capability) do not support Lightning CSS yet. The setting is therefore disabled and ignored; the warning tells the user the wasm binary is the reason rather than a config mistake.","triggerScenarios":"Thrown at packages/next/src/server/config.ts:2136 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use the native next-swc binary instead of the wasm build to enable experimental.useLightningcss."],"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-14T05:17:10.506Z"}