withNativeWind type error when passing config as expo metro config
Author: Alvi24Created Sep 12, 2025Updated Jul 20, 2026
Labelsneeds reproduction
when importing
import type { MetroConfig } from "expo/metro-config";
and passing it to withNativewind
withNativeWind(config)
it produces a type error
Argument of type 'ConfigT' is not assignable to parameter of type 'InputConfigT'.
Types of property 'cacheStores' are incompatible.
Type 'readonly CacheStore<TransformResult<MixedOutput>>[]' is not assignable to type 'readonly CacheStore<TransformResult<MixedOutput>>[] | ((metroCache: MetroCache) => readonly CacheStore<TransformResult<MixedOutput>>[]) | undefined'.Reproduction
import type { MetroConfig } from "expo/metro-config";
withNativeWind(config)Source: nativewind/nativewind