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 started a new Blank Library using the Fabric View template, after I ran yarn install in the project root and inside the example folder without changing or doing anything else I ran yarn android and I keep getting this error:
I got the same problem with a new Turbo library. I use node 20, the same thing with node 18. In my case, I turned out gradle, somehow, couldn't resolve npx although Nodjs bin folder is in the PATH. You may try to use the absolute path to npx in file
example/android/app/build.gradle At the end of the file,
if (isNewArchitectureEnabled()) {
// Since our library doesn't invoke codegen automatically we need to do it here.
tasks.register('invokeLibraryCodegen', Exec) {
workingDir "$rootDir/../../"
// I use this command to confirm that node/bin is in the PATH
commandLine 'env'
commandLine "npx", "bob", "build", "--target", "codegen"
}
preBuild.dependsOn invokeLibraryCodegen
}
I changed it to the absolute path, it worked.
Then, I restarted my PC, turn back to just npx, and ... it also worked!
Description
I started a new Blank Library using the
Fabric View
template, after I ranyarn install
in the project root and inside the example folder without changing or doing anything else I ranyarn android
and I keep getting this error:I also tried the
Fabric View with backward compatibility
template and I got the same error.I also followed these docs to check if anything was wrong with the template and I didn't find anything: https://github.com/reactwg/react-native-new-architecture/blob/main/docs/fabric-native-components.md
Packages
Selected options
Fabric View
Link to repro
https://github.com/hamdoudhakem/react-native-chat-llm
Environment
The text was updated successfully, but these errors were encountered: