react-native-picker-select icon indicating copy to clipboard operation
react-native-picker-select copied to clipboard

[React-Native] Error: Unable to resolve module `react-native-web/dist/modules/UnimplementedView` from `node_modules/@react-native-picker/picker/js/PickerIOS.js`

Open prasad456 opened this issue 4 years ago • 10 comments

I install the package from https://openbase.io/js/react-native-picker-select and install below packages

npm install react-native-picker-select npm install @react-native-picker/picker npx pod-install

picker worked well, I can able to run in iOS simulator. But I want to run in emulator and generate a release APK facing below ERROR.

Error: Unable to resolve module react-native-web/dist/modules/UnimplementedView from node_modules/@react-native-picker/picker/js/PickerIOS.js: react-native-web/dist/modules/UnimplementedView could not be found within the project.

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots Error while running in android Screenshot_1608269192 Error while genrating APK Screen Shot 2020-12-18 at 10 57 32 AM

Additional details

  • Device: emulator pixel device
  • OS: Android R
  • react-native-picker-select version: 8.0.4
  • react-native version: 0.63

Reproduction and/or code sample n/a

prasad456 avatar Dec 18 '20 05:12 prasad456

Facing the same issue

the-vishal-kumar avatar Dec 18 '20 05:12 the-vishal-kumar

Encountered the same issue, workaround?

ipkiruiYegon avatar Dec 18 '20 07:12 ipkiruiYegon

Same!

JaapWeijland avatar Dec 18 '20 12:12 JaapWeijland

_npm i react-native-web worked for me

ipkiruiYegon avatar Dec 18 '20 12:12 ipkiruiYegon

Reverting to 8.0.3 fixes it as a workaround.

almercier avatar Dec 18 '20 19:12 almercier

@ipkiruiYegon thanks buddy react-native-web perfectly works for me :)

vikasarrj avatar Dec 19 '20 05:12 vikasarrj

Upgrading react-native-web from 0.14.2 to 0.14.10 didn't solve this for me, I still get this error when I try to run on web:

error - /Users/f/node_modules/react-native-picker-select/node_modules/@react-native-picker/picker/js/PickerIOS.js
Attempted import error: 'UnimplementedView' is not exported from 'react-native-web/dist/index'.
Error: Cannot find module '/Users/f/packages/expo-next-app/.next/server/pages-manifest.json'

Downgrading to 8.0.3 worked for me. Does this version still use @react-native-picker/picker?

nandorojo avatar Jan 10 '21 21:01 nandorojo

The problem is that 8.0.3 uses the @react-native-community/picker which is deprecated and causes duplicate in android

zivchen avatar Oct 14 '21 08:10 zivchen

i recommend use react-native-picker/picker: https://github.com/react-native-picker/picker

huynhnhutlinh99 avatar Nov 23 '21 04:11 huynhnhutlinh99

installing react-native-picker/picker v2.1.0 solved the problem for me

i33mr avatar Mar 04 '22 11:03 i33mr