React-native-ui-kitten: Bundling in version 4.2 produces "Unable to resolve "./overflowMenu/overflowMenuItem.component""

Created on 27 Sep 2019  路  5Comments  路  Source: akveo/react-native-ui-kitten

Issue type

I'm submitting a ... (check one with "x")

  • [X] bug report
  • [ ] feature request

Issue description

Current behavior:
Bundling ends with the following error:

Unable to resolve "./overflowMenu/overflowMenuItem.component" from "node_modules/react-native-ui-kitten/ui/index.js"
Failed building JavaScript bundle.

Expected behavior:
Bundling works.

Steps to reproduce:

Upgrade react-native-ui-kitten to 4.2. In particular I narrowed this down to upgrading @eva-design/eva to 1.2, which gets installed with react-native-ui-kitten from 4.2 beta.

Related code:

insert short code snippets here

Other information:

OS, device, package version

@eva-design/[email protected]
[email protected]

All 5 comments

It should not :)
Please try following this answer https://github.com/akveo/react-native-ui-kitten/issues/643#issuecomment-534931117

Thanks for a swift response. While your code didn't work (I'm on Mac), I did all sort of other cleanups plus reinstalled packages using expo install rather than npm (I'm new to expo) and finally it worked!

I am having the same error. I already tryied the suggested answers from @artyorsh.

I have just run into this issue as well but I solved it by:

  1. watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf ./node_modules ./package-lock.json && npm i && npm start -- --reset-cache ( #643 )
  2. expo r -c
  3. Force quit and reopen expo app

@ben-wright thanks for posting this. Your answer is actual for Expo users.
The final command will look like:

watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf ./node_modules ./package-lock.json && npm i && expo start -c

Btw, this should be actual not only for our library, but for any other reproducing changes in exported modules when updating

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gimli01 picture gimli01  路  3Comments

evangunawan picture evangunawan  路  3Comments

RWOverdijk picture RWOverdijk  路  3Comments

jeloagnasin picture jeloagnasin  路  3Comments

chamatt picture chamatt  路  3Comments