-
-
Notifications
You must be signed in to change notification settings - Fork 15
Description
Description:
Environment:
Node.js: v22.14.0
React Native: 0.76.9
Gradle: 8.10.2
Operating System: Windows 11
Steps to Reproduce:
Run the build command on the React Native project.
Observe the :react-native-here-explore:generateCodegenSchemaFromJavaScript task failure.
Expected Behavior:
The generateCodegenSchemaFromJavaScript task should complete successfully without errors.
Observed Behavior:
The task fails with the following error:
Error: Unknown prop type for "mapScheme": "MapScheme"
Full Error Log:
Task :react-native-here-explore:generateCodegenSchemaFromJavaScript FAILED
D:\Codigos\Saude Express\mobile-2\node_modules@react-native\codegen\lib\parsers\typescript\components\componentsUtils.js:410
throw new Error(Unknown prop type for "${name}": "${type}"
); ^
Error: Unknown prop type for "mapScheme": "MapScheme"
at getTypeAnnotation (D:\Codigos\Saude Express\mobile-2\node_modules@react-native\codegen\lib\parsers\typescript\components\componentsUtils.js:410:13)
at buildPropSchema (D:\Codigos\Saude Express\mobile-2\node_modules@react-native\codegen\lib\parsers\parsers-commons.js:1109:21)
at D:\Codigos\Saude Express\mobile-2\node_modules@react-native\codegen\lib\parsers\typescript\parser.js:471:26
at Array.map ()
at TypeScriptParser.getProps (D:\Codigos\Saude Express\mobile-2\node_modules@react-native\codegen\lib\parsers\typescript\parser.js:471:10)
at buildComponentSchema (D:\Codigos\Saude Express\mobile-2\node_modules@react-native\codegen\lib\parsers\typescript\components\index.js:38:35)
at buildSchemaFromConfigType (D:\Codigos\Saude Express\mobile-2\node_modules@react-native\codegen\lib\parsers\parsers-commons.js:634:34)
at buildSchema (D:\Codigos\Saude Express\mobile-2\node_modules@react-native\codegen\lib\parsers\parsers-commons.js:698:10)
at TypeScriptParser.parseString (D:\Codigos\Saude Express\mobile-2\node_modules@react-native\codegen\lib\parsers\typescript\parser.js:134:12)
at TypeScriptParser.parseFile (D:\Codigos\Saude Express\mobile-2\node_modules@react-native\codegen\lib\parsers\typescript\parser.js:131:17)
Node.js v22.14.0
FAILURE: Build failed with an exception.
*What went wrong:
Execution failed for task ':react-native-here-explore:generateCodegenSchemaFromJavaScript'.
Process 'command 'cmd'' finished with non-zero exit value 1
- 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.
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.
BUILD FAILED in 8s
37 actionable tasks: 6 executed, 31 up-to-date
Possible Cause:
It appears that the code is trying to process an unknown property type MapScheme for mapScheme. This could be due to a missing or incorrect type definition in the TypeScript code.
Suggestions to resolve:
Ensure that the MapScheme type is correctly defined and imported in the code.
Update the project dependencies to ensure compatibility with the current versions of Node.js and Gradle.
Run the build with the --info or --debug options to get more details about the error.