React-native-keyboard-aware-scroll-view: After upgrade: ambiguous resolution: module

Created on 24 Oct 2017  路  12Comments  路  Source: APSL/react-native-keyboard-aware-scroll-view

RN 0.49.3

error: bundling failed: ambiguous resolution: module `/react/projects/ology_mobile_templates/Ology/index.js` tries to require `react-native`, but there are several files providing this module. You can delete or fix them: 

  * `/react/projects/ology_mobile_templates/Ology/node_modules/react-native-drawer-layout-polyfill/node_modules/react-native/package.json`
  * `/react/projects/ology_mobile_templates/Ology/node_modules/react-native-drawer-layout/node_modules/react-native/package.json`
  * `/react/projects/ology_mobile_templates/Ology/node_modules/react-native-iphone-x-helper/node_modules/react-native/package.json`
  * `/react/projects/ology_mobile_templates/Ology/node_modules/react-native-keyboard-aware-scroll-view/node_modules/react-native/package.json`
  * `/react/projects/ology_mobile_templates/Ology/node_modules/react-native-tab-view/node_modules/react-native/package.json`
  * `/react/projects/ology_mobile_templates/Ology/node_modules/react-native/package.json`

Most helpful comment

I had to run react-native start --reset-cache after accidentally installing 0.4.0.

All 12 comments

Can you update to 0.4.1?

Hmm, weirdly enough the error remains. Did a clean of tmpdir, watchman, build folder and node_modules and verified that react-native is now a peer dependency for react-native-keyboard-aware-scroll-view but I keep getting the error. Hmmm, odd.

Which RN version are you working on?

0.49.3

Weird, let me check.

I also see that react-native is no longer present in the react-native-keyboard-aware-scroll-view/node_modules folder. Must be cache. Let me clean again

Cache cleaned again. Also did a hard reset on the simulator now. Physically destroyed the build folder. Still have the problem. Doesn't seem to make sense.

Not sure what it could be. This node_modules/bin/react-native looks odd.

screen shot 2017-10-24 at 11 26 42

Can't reproduce the issue with a 0.49.3 RN project and a 0.4.1 react-native-keyboard-aware-scroll-view 馃槩

I think some kind of link was created between the app dir and the Trash after removing node_modules. Cleaning trash, cleaning cache again, restart solved the issue.

Cool! glad to hear!

I had to run react-native start --reset-cache after accidentally installing 0.4.0.

Was this page helpful?
0 / 5 - 0 ratings