Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed building javascript Bundle. Unable to resolve module react-native-multiple-select\index.js #184

Open
bsqqq opened this issue Jun 25, 2021 · 1 comment

Comments

@bsqqq
Copy link

bsqqq commented Jun 25, 2021

Issue summary

Looks like there's no index.js in the package...

    5 |  */
> 6 | import MultiSelect from './lib/react-native-multi-select';
      |                        ^
   7 |
   8 | export default MultiSelect;
   9 |
 None of these files exist:
  * node_modules\react-native-multiple-select\lib\react-native-multi-select(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
  * node_modules\react-native-multiple-select\lib\react-native-multi-select\index(.native|.android.ts|.native.ts|.ts|.android.tsx|.native.tsx|.tsx|.android.js|.native.js|.js|.android.jsx|.native.jsx|.jsx|.android.json|.native.json|.json)
  *

Library version: 0.5.6

Steps to Reproduce

  1. Import the package
  2. Put the import as normally do inside render() with all its required props
<MultiSelect 
    items={colaboradoresFormatados}
    uniqueKey="id"
    selectedItems={equipeId}
    onSelectedItemsChange={(selectedItems: number[]) => setEquipeId(selectedItems)}
/>
  1. Try to run

Expected Behavior

I expected to run normally, like the example in npmjs.com, where i found the package...

Actual Behavior

It pop-ups an error saying that this files doesn't exist like i said earlier... not sure what to do...

@kamatchipannerselvam
Copy link

I am new to react native js, i'm also facing this issue only on web view android phone working fine not tested in ios,
i'm curious to know in react-native-multi-select.js line no 43, & 55 to 67 used ViewPropTypes.style insted of PropTypes.style first of all is it correct? if yes means please explaine to me why? how to send this propeties values to build component
if remove those lines it's working well

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants