openmobilehub / react-native-omh-auth

https://openmobilehub.github.io/react-native-omh-auth/
Apache License 2.0
7 stars 2 forks source link

Unable to Install Monorepo Dependencies as per Getting Started README.md #24

Closed dzuluaga closed 6 months ago

dzuluaga commented 6 months ago

I'm attempting to follow the instructions outlined in the Getting Started README.md file in the repository, but I'm encountering difficulties while trying to install the monorepo dependencies. Below is the error message I'm receiving:

yarn install v1.22.19
info No lockfile found.
[1/4] ๐Ÿ” Resolving packages...
error Couldn't find package "@omh/react-native-auth-core@workspace:*" required by "react-native-auth-sample@1.0.0-beta" on the "npm" registry.
...

Error: Couldn't find package "@omh/react-native-auth-google@workspace:*" required by "react-native-auth-sample@1.0.0-beta" on the "npm" registry.

Error: Couldn't find package "@omh/react-native-auth-dropbox@workspace:*" required by "react-native-auth-sample@1.0.0-beta"

Error: Couldn't find package "@omh/react-native-auth-microsoft@workspace:*"...

It seems that there is a problem with locating certain packages like @omh/react-native-auth-core and others on the npm registry. I have tried running both yarn install and npm install commands, but the issue persists.

Steps to Reproduce:

  1. Clone the repository.
  2. Follow the instructions in the Getting Started README.md file.
  3. Run yarn install or npm install.

Expected Behavior:

All monorepo dependencies should be installed successfully without any errors.

Actual Behavior:

Encountering errors related to missing packages from the npm registry, as described above.

Additional Information:

Any assistance or guidance on how to resolve this issue would be greatly appreciated.

Also, I see the many warnings about the usage of deprecated libraries. Can something be done about it?

warning workspace-aggregator-1994dccf-168d-4da1-b8d1-4b288bbfb961 > react-native-auth-sample > @react-native/babel-preset > @babel/plugin-proposal-async-generator-functions@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-async-generator-functions instead.
dzuluaga commented 6 months ago

Friendly ping. We want to showcase these components on Wednesday TSC.

Esemesek commented 6 months ago

Hey @dzuluaga, it seems like you're using wrong tool to install packages. We use bun to bootstrap the monorepo - not yarn. All the necessary instructions are present in CONTRIBUTING.md or here. In addition to that you will need to provide secrets in local.properties of the Android project.

andrei-zgirvaci commented 6 months ago

Hey @dzuluaga, thanks for bringing this to our attention! We have since migrated our repository from using bun to yarn@4 in https://github.com/openmobilehub/react-native-omh-auth/pull/45/commits/6f2ba83ef85c9e53237fb17ca401a239ba88110e, thus making it accessible to more developers.

dzuluaga commented 5 months ago

Noted. Thanks for making it work with Yarn ๐Ÿ‘๐Ÿผ.