bugfender / rn-bugfender

Bugfender for React Native
https://bugfender.com
Apache License 2.0
30 stars 6 forks source link

Unable to resolve module @bugfender/common from @bugfender/rn-bugfender/src/index.tsx: @bugfender/common could not be found #80

Closed PunainenAurinko closed 1 year ago

PunainenAurinko commented 1 year ago

I have the following error on @bugfender/rn-bugfender version 2.2.1 on both iOS and Android.

I cleaned the project and reinstalled modules and pods multiple times, but I'm still getting this error. Any help will be appreciated.

Screenshot 2023-08-14 at 5 27 11 PM

Simulator Screenshot - iPhone 14 Pro Max - 2023-08-14 at 17 36 19

jgimenez commented 1 year ago

Did you install @bugfender/common?

You'll need to install this module like this (see README for more details):

npm install @bugfender/rn-bugfender @bugfender/sdk @bugfender/common
PunainenAurinko commented 1 year ago

@jgimenez Thank you, my mistake. This is working with the addition of the other two packages. I totally missed it from the readme file, as it was not required before and I didn't see anything mentioned about it in the release change logs.

jgimenez commented 1 year ago

Thanks for letting me know, we'll see if it's possible to make the error more explicit. I'm a bit surprised npm lets you install a package without its dependencies?

PunainenAurinko commented 1 year ago

I'm using Yarn, maybe that's why?

jgimenez commented 1 year ago

Ah, maybe. I'm not sure how it works with Yarn. I confirmed npm will automatically install peer dependencies even if you don't ask it to.