Oct
16
10 hours ago
Activity icon
issue

marcsumilang issue facebook/react-native

marcsumilang
marcsumilang

[ios 15][xcode 13] error: index.js: Transformer is not a constructor

Version

0.66.0

Build Target(s)

ios simulator and real device issue

Developer Environment

**#11.6 CPU: (4) x64 Intel(R) Core(TM) i5-5350U CPU @1.80GHz Memory: 184.68 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 14.15.4 - ~/.nvm/versions/node/v14.15.4/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.10 - ~/.nvm/versions/node/v14.15.4/bin/npm Watchman: 2021.08.30.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.10.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 15.0, DriverKit 20.4, macOS 11.3, tvOS 15.0, watchOS 8.0 Android SDK: Not Found IDEs: Android Studio: 3.6 AI-192.7142.36.36.6392135 Xcode: 13.0/13A233 - /usr/bin/xcodebuild Languages: Java: 14.0.2 - /usr/bin/javac npmPackages: @react-native-community/cli: ^5.0.1 => 5.0.1 react: 17.0.2 => 17.0.2 react-native: 0.66.0 => 0.66.0 react-native-macos: ^0.63.14 => 0.63.38 npmGlobalPackages: react-native: Not Found

I have also done cleanup but the issue persists:

watchman watch-del-all; rm -rf yarn.lock; rm -rf node_modules; rm -rf $TMPDIR/react-* rm -rf $TMPDIR/npm-* cd ios rm -rf Pods; rm -rf Podfile.lock; rm -rf build; yarn cache clean pod cache clean --all cd ../android rm -rf build rm -rf ~/Library/Developer/Xcode/DerivedData

yarn install; pod install;

Issue:

error: index.js: Transformer is not a constructor I encounter this on both my simulator (iPhone 13 - ios 15) real device (iPhone 12 - ios 15) i am using code 13

image

Issue and Reproduction Steps

react-native run-ios

started
started time in 1 hour ago
started
started time in 1 hour ago
started
started time in 2 hours ago
started
started time in 2 hours ago
Activity icon
fork

ys-sherzad forked facebook/react-native

⚡ A framework for building native applications using React
ys-sherzad Updated
fork time in 3 hours ago
Activity icon
issue

samuel3105 issue comment facebook/react-native

samuel3105
samuel3105

Stack Navigator is sensitive to space

ok this is my first time ever sending a bug report and this is not a bug but it could be an improvement for developer experience

Description

Stack Navigator name is sensitive to space so if you add an space after it its not gone work

<Stack.Screen options={{ headerShown: false }} name="Home" component={Home} /> is not like <Stack.Screen options={{ headerShown: false }} name="Home " component={Home} />

so is there any way to filter the name and remove any space and let developers only use url friendly names ?

React Native version:

"dependencies": { "@react-navigation/native": "^6.0.6", "@react-navigation/native-stack": "^6.2.4", "expo": "~42.0.1", "expo-constants": "~11.0.1", "expo-status-bar": "~1.0.4", "react": "16.13.1", "react-dom": "16.13.1", "react-native": "https://github.com/expo/react-native/archive/sdk-42.0.0.tar.gz", "react-native-gesture-handler": "^1.10.3", "react-native-safe-area-context": "3.2.0", "react-native-screens": "~3.4.0", "react-native-web": "~0.13.12", "react-navigation": "^4.4.4" },

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

1.make a navigation system like this <Stack.Navigator> <Stack.Screen options={{ headerShown: false }} name="Home" component={Home} /> <Stack.Screen options={{ headerShown: false }} name="Login" component={Login} /> <Stack.Screen options={{ headerShown: false }} name="Detail" component={Detail} /> </Stack.Navigator>

  1. in Stack.Screen in name field add an extra space at the end like this <Stack.Screen options={{ headerShown: false }} name="Home " component={Home} />

Expected Results

navigation.navigate("Home") == undefined

Snack, code example, screenshot, or link to a repository:

function App() { return ( <Stack.Navigator> <Stack.Screen options={{ headerShown: false }} name="Home" component={Home} /> <Stack.Screen options={{ headerShown: false }} name="Login" component={Login} /> <Stack.Screen options={{ headerShown: false }} name="Detail" component={Detail} /> </Stack.Navigator> ); } export default App;

sorry if i waste your time as i said im a noob and this is my first time , forgive me have good day

Activity icon
fork

CoderEnt forked facebook/react-native

⚡ A framework for building native applications using React
CoderEnt Updated
fork time in 4 hours ago
Previous