Closed ospfranco closed 1 month ago
Hey, outputDir
is not specific to bob (PR introducing it: https://github.com/facebook/react-native/pull/41782), so if you are running into issues you should probably open a PR in React Native repository.
Thanks for taking a look @okwasniewski!
Yeah, after looking at the code I realized it comes from RN itself, just thought maybe bob modified the generation process further (other than patching the package). If it's not I will go spelunking myself.
Another question, what does the following object do in the package.json?
"create-react-native-library": {
"type": "module-new",
"languages": "cpp",
"version": "0.41.1"
}
It is important somehow?
Also, as a side note, this is not properly implemented in bob I believe. Pure RN allows to nos specify the path, but the patchCodegen.js script fails if no output path is specified, maybe this is messing up the generation for my use case.
Yeah, after looking at the code I realized it comes from RN itself, just thought maybe bob modified the generation process further (other than patching the package). If it's not I will go spelunking myself.
I will cc @atlj because I don't have inside knowledge about this.
Another question, what does the following object do in the package.json?
"create-react-native-library": { "type": "module-new", "languages": "cpp", "version": "0.41.1" }
This was introduced by @atlj here: https://github.com/callstack/react-native-builder-bob/pull/551
It's going to be used in the future for a library upgrade helper 👀
ok, I understand, thanks for clarifying. Can you give me a hand and tell me what does:
npx bob build --target codegen
do? Like, what's exactly is it calling. From what I can see in the filesystem bob is a binary of some sorts but it would be good which command it calls so I know how the codegen is being generated, much appreciated!
Hmm I just re-generated my sources and everything is compiling just fine, weird. I will close this for now, re-open if necessary.
Description
I'm trying to write a CPP Turbo Module. I have the following config that generates the files under
android/generated
:However, when I try to build my app, I get the following error:
Which then throws the following error:
You can see the folder structure under
android/generated
does not match. Am I doing something wrong?Packages
Selected options
C++ Turbo Module with Vanilla app
Link to repro
-
Environment