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
Right now when using react-native-reanimated (latest) in an Expo app in pnpm monorepo with isolated node-linker, we get an issue during EAS build:
FAILURE: Build failed with an exception.
* Where:
Build file '/home/expo/workingdir/build/node_modules/.pnpm/[email protected]_@[email protected][email protected]_@babel+cor_d121a284a5d3a86846687217f0933308/node_modules/react-native-reanimated/android/build.gradle' line: 53
* What went wrong:
A problem occurred evaluating project ':react-native-reanimated'.
> Process 'command 'node'' finished with non-zero exit value 1
The solution to get the gradle build working for react-native-reanimated in this situation is to set the node-linker to hoisted for EAS build, by adding eas-build-pre-install script in package.json of the app:
This enables us to have isolated installs locally, but hoisted in EAS. However, this introduces potential issues if we have multiple apps in the monorepo, with different versions of native modules (react-native, react etc).
Is there a plan to support isolated installs in react-native-reanimated?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Right now when using react-native-reanimated (latest) in an Expo app in pnpm monorepo with isolated node-linker, we get an issue during EAS build:
It seems to be this that causes the issue...
The solution to get the gradle build working for react-native-reanimated in this situation is to set the node-linker to
hoisted
for EAS build, by addingeas-build-pre-install
script in package.json of the app:This enables us to have
isolated
installs locally, buthoisted
in EAS. However, this introduces potential issues if we have multiple apps in the monorepo, with different versions of native modules (react-native, react etc
).Is there a plan to support
isolated
installs in react-native-reanimated?Beta Was this translation helpful? Give feedback.
All reactions