react-native-builder-bob icon indicating copy to clipboard operation
react-native-builder-bob copied to clipboard

Example project mismatch React-native version from the Bridge

Open ebellumat opened this issue 6 years ago • 5 comments

Package.JSON of the library genereted.

  "devDependencies": {
    "react": "~16.9.0",
    "react-native": "~0.61.5",
  },

Package.JSON from the example project.

  "dependencies": {
    "react": "16.11.0",
    "react-native": "0.62.0"
  },

Because of this, the example project doesn't run.

image

ebellumat avatar May 28 '20 18:05 ebellumat

To run, i had to use https://react-native-community.github.io/upgrade-helper/ comparing the version 0.61.5 to 0.62.0 and downgrade all the files of example project, annoying, but work.

ebellumat avatar May 28 '20 18:05 ebellumat

We need to fix it, but why didn't you just bump the versions in root package.json instead of downgrading the whole example project?

satya164 avatar May 29 '20 17:05 satya164

@satya164 The packages added in the root project needs to be reflected in the example project realtime right ? while installing new packages, the modules are not being resolved in the example project, but it works fine if used after packing and install the library in another project.

AmalMenachery avatar Jun 12 '20 05:06 AmalMenachery

@AmalMenachery they should work fine, except the ones in peer deps which you need to install under example too. can you share a repro?

satya164 avatar Jun 12 '20 23:06 satya164

https://github.com/react-native-community/bob/commit/474c748e1a49e261ce4203d5b16a359bd4d76f7f

satya164 avatar Jun 12 '20 23:06 satya164