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
I'm getting a build error when trying to migrate to the newest React native version with new architecture enabled (v0.77.1).
> Task :react-native-blob-util:generateCodegenSchemaFromJavaScript FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.10.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
29 actionable tasks: 28 executed, 1 up-to-date
info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor
The NODE_ENV environment variable is required but was not specified. Ensure the project is bundled with Expo CLI or NODE_ENV is set.
Proceeding without mode-specific .env
Warning: Root-level "expo" object found. Ignoring extra keys in Expo config: "name", "displayName"
Learn more: https://expo.fyi/root-expo-object
C:\project-name\node_modules\@react-native\codegen\node_modules\flow-parser\flow_parser.js:818
throw a}function
^
Error: ENOENT: no such file or directory, lstat 'C:\project-name\node_modules\react-native-blob-util\android\NativeSampleTurboModule'
at Object.lstatSync (node:fs:1643:25)
at C:\project-name\node_modules\@react-native\codegen\lib\cli\combine\combine-js-to-schema-cli.js:27:10
at Array.forEach (<anonymous>)
at Object.<anonymous> (C:\project-name\node_modules\@react-native\codegen\lib\cli\combine\combine-js-to-schema-cli.js:26:10)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32)
at Module._load (node:internal/modules/cjs/loader:1023:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:135:12)
at node:internal/main/run_main_module:28:49 {
errno: -4058,
code: 'ENOENT',
syscall: 'lstat',
path: 'C:\\project-name\\node_modules\\react-native-blob-util\\android\\NativeSampleTurboModule'
}
Node.js v20.11.0
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-blob-util:generateCodegenSchemaFromJavaScript'.
> Process 'command 'cmd'' finished with non-zero exit value 7
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 3m 18s
error Failed to install the app. Command failed with exit code 1: gradlew.bat app:installDevDebug -PreactNativeDevServerPort=8081 -PreactNativeArchitectures=x86_64
The NODE_ENV environment variable is required but was not specified. Ensure the project is bundled with Expo CLI or NODE_ENV is set.
It says that a file/folder missing 'NativeSampleTurboModule' and it looks like an error related to React native CodeGen.
The text was updated successfully, but these errors were encountered:
hachem-benamor
changed the title
Migration to React Native >0.76 issue
Migration to React Native >=0.76 issue
Feb 21, 2025
I'm getting a build error when trying to migrate to the newest React native version with new architecture enabled (v0.77.1).
It says that a file/folder missing 'NativeSampleTurboModule' and it looks like an error related to React native CodeGen.
The text was updated successfully, but these errors were encountered: