-
Notifications
You must be signed in to change notification settings - Fork 153
Description
Describe the bug
When opening a micro app using repack, I get the following error:
Warning: TypeError: Cannot read property 'validated' of undefined
This error only happens when downloading the micro app. When running the same micro app locally with the dev server, everything works fine.
π Notes
The error seems related to createStackNavigator from @react-navigation/stack.
However, we have other parent apps using the same Stack.Navigator without any issue.
π Code sample that triggers the error
<KeyboardProvider>
<IntlProvider locale={locale} messages={localeMessages}>
<Stack.Navigator initialRouteName="Welcome">
<Stack.Screen
name="Welcome"
options={{
header: (props) => <WelcomeHeader {...props} hasBackButton />
}}
/>
</Stack.Navigator>
</IntlProvider>
</KeyboardProvider>
β Code sample that works fine
<KeyboardProvider>
<IntlProvider locale={locale} messages={localeMessages}>
<View />
</IntlProvider>
</KeyboardProvider>
`
π¦ Environment
React Navigation:
"@react-navigation/bottom-tabs": "6.5.20"
"@react-navigation/drawer": "6.6.15
"@react-navigation/native": "6.1.16"
"@react-navigation/stack": "6.3.28"
Repack:
"@callstack/repack": "5.2.0"
"@callstack/repack-plugin-expo-modules": "5.2.0"
"@callstack/repack-plugin-reanimated": "5.2.0"
React Native:
"react-native": "0.79.5"
"react": "19.0.0",
π€ Possible cause
It looks like something related to how the micro app bundle is being loaded by repack, since the issue only happens in that scenario and not when running with the dev server.
β Question
Is there anything I can do to enable more detailed logs or debugging options so I can better understand why this error is happening and provide clearer information to help fix it?
System Info
System:
OS: macOS 15.5
CPU: (10) arm64 Apple M1 Pro
Memory: 394.94 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.13.1
path: ~/.nvm/versions/node/v22.13.1/bin/node
Yarn:
version: 1.22.22
path: ~/.nvm/versions/node/v22.13.1/bin/yarn
npm:
version: 10.9.2
path: ~/.nvm/versions/node/v22.13.1/bin/npm
Watchman:
version: 2025.02.17.00
path: /opt/homebrew/bin/watchman
Managers:
CocoaPods:
version: 1.16.2
path: /Users/user/.rbenv/shims/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.5
- iOS 18.5
- macOS 15.5
- tvOS 18.5
- visionOS 2.5
- watchOS 11.5
Android SDK:
API Levels:
- "31"
- "34"
- "35"
Build Tools:
- 30.0.3
- 31.0.0
- 34.0.0
- 35.0.0
- 36.0.0
System Images:
- android-35 | Google Play ARM 64 v8a
- android-36 | Google APIs Intel x86_64 Atom
Android NDK: Not Found
IDEs:
Android Studio: 2024.2 AI-242.23339.11.2421.12550806
Xcode:
version: 16.4/16F6
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.13
path: /usr/bin/javac
Ruby:
version: 3.3.6
path: /Users/user/.rbenv/shims/ruby
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
react-native-macos: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: falseRe.Pack Version
5.2.0
Reproduction
.
Steps to reproduce
.