react-native-clipboard / clipboard

React Native Clipboard API for both iOS and Android.
MIT License
669 stars 118 forks source link

Monorepo REACT_NATIVE_NODE_MODULES_DIR error #215

Closed mordonez-me closed 6 months ago

mordonez-me commented 6 months ago

Environment

System: OS: macOS 14.0 CPU: (8) arm64 Apple M2 Memory: 106.05 MB / 24.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 18.18.0 path: ~/.local/share/nvm/v18.18.0/bin/node Yarn: version: 1.22.21 path: ~/.local/share/nvm/v18.18.0/bin/yarn npm: version: 10.2.4 path: ~/.local/share/nvm/v18.18.0/bin/npm Watchman: Not Found Managers: CocoaPods: version: 1.11.3 path: /usr/local/bin/pod SDKs: iOS SDK: Platforms:

info React Native v0.73.0 is now available (your project is running on v0.72.6).

Platforms

Android

Versions

Description

building with gradle does not find root node_modules, because this is run inside a folder and one level extra is needed. The current code is:

image

Should be:

image

The extra ../ makes it work.

Reproducible Demo

You need to set up a monorepo with pnpm and hoisted.

JClackett commented 6 months ago

Yep, have the exact same thing since version 1.13.0/1.13.1

Titozzz commented 6 months ago

Created a PR :) with a comment showing where the issue came from 🥲