You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If we remove outputDir from package.json . packageJson.codegenConfig.outputDir becomes undefined and throws an error when trying to access the android key. Adding optional chaining would fix the issue .
It wont make a difference as error will be thrown the next line but atleast the error message will be debuggable
Description
I am facing issue while using codegen . The build starts failing
If I keep the outputDir and includesGeneratedCode I am getting the below error on iOS
Packages
Selected options
✔ What type of library do you want to develop? › Turbo module
✔ Which languages do you want to use? › C++ for Android & iOS
Link to repro
https://github.com/riteshshukla04/rn-codegen-repro
Environment
System:
OS: macOS 15.1
CPU: (8) arm64 Apple M2
Memory: 194.16 MB / 16.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 22.7.0
path: ~/.nvm/versions/node/v22.7.0/bin/node
Yarn:
version: 3.6.1
path: ~/.nvm/versions/node/v22.7.0/bin/yarn
npm:
version: 10.8.2
path: ~/.nvm/versions/node/v22.7.0/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.15.2
path: /Users/riteshshukla2/.rvm/gems/ruby-2.7.5/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 24.1
- iOS 18.1
- macOS 15.1
- tvOS 18.1
- visionOS 2.1
- watchOS 11.1
Android SDK: Not Found
IDEs:
Android Studio: 2024.1 AI-241.18034.62.2412.12266719
Xcode:
version: 16.1/16B40
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.12
path: /usr/bin/javac
Ruby:
version: 2.7.5
path: /Users/riteshshukla2/.rvm/rubies/ruby-2.7.5/bin/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: true
iOS:
hermesEnabled: true
newArchEnabled: true
The text was updated successfully, but these errors were encountered: