Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find source file jsi.cpp in monorepo with hoisted packages #89

Open
ElielC opened this issue May 14, 2024 · 1 comment
Open

Cannot find source file jsi.cpp in monorepo with hoisted packages #89

ElielC opened this issue May 14, 2024 · 1 comment

Comments

@ElielC
Copy link

ElielC commented May 14, 2024

Hello, i have a monorepo where i use expo(SDK 51) in local app development.

Because this recomendation i have node-linker=hoisted in my .npmrc.

Running npx expo run:android then results in this error message:
`CMake Error at CMakeLists.txt:18 (add_library):
Cannot find source file:

  /Users/ecsilveira/Desktop/www/my-project/examples/expo/node_modules/react-native/ReactCommon/jsi/jsi/jsi.cpp

Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
.hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc

CMake Error at CMakeLists.txt:18 (add_library):
No SOURCES given to target: fast-rsa`

The react native package is not inside expo/node_modules, but my-project/node_modules.

Removing node-linker=hoisted results in correct compilation but the app crashes immediately.

I'm currently attempting to resolve the issues created by remover the hoisted behavior, but i`d like to ask if anyone has any suggestions.

Thanks.

@ElielC
Copy link
Author

ElielC commented May 15, 2024

I have found a workaround by manually changing the cmake argument for node_modules in the package build.gradle utilizing pnpm`s patch command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant