From f78c234780e1826e244315ed571409009649b4f5 Mon Sep 17 00:00:00 2001 From: Guido D'Orsi Date: Sun, 12 Jan 2025 10:53:03 +0100 Subject: [PATCH] fix(rn): add unstable_enablePackageExports to the metro config --- .changeset/tasty-ducks-wave.md | 5 +++++ packages/create-jazz-app/src/index.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/tasty-ducks-wave.md diff --git a/.changeset/tasty-ducks-wave.md b/.changeset/tasty-ducks-wave.md new file mode 100644 index 000000000..83ff392be --- /dev/null +++ b/.changeset/tasty-ducks-wave.md @@ -0,0 +1,5 @@ +--- +"create-jazz-app": patch +--- + +Fix metro config for the RN starter diff --git a/packages/create-jazz-app/src/index.ts b/packages/create-jazz-app/src/index.ts index cd942712e..05e97b563 100644 --- a/packages/create-jazz-app/src/index.ts +++ b/packages/create-jazz-app/src/index.ts @@ -124,6 +124,8 @@ const { withNativeWind } = require("nativewind/metro"); const config = getDefaultConfig(__dirname); +config.resolver.unstable_enablePackageExports = true; + module.exports = withNativeWind(config, { input: "./src/global.css" }); `; fs.writeFileSync(metroConfigPath, metroConfig);