简体   繁体   中英

Invariant Violation: Picker has been removed from React Native

在此处输入图像描述

ERROR Invariant Violation: Picker has been removed from React Native. It can now be installed and imported from '@react-native-picker/picker' instead of 'react-native'.
See https://github.com/react-native-picker/picker
ERROR Invariant Violation: Module AppRegistry is not a registered callable module (calling runApplication). A frequent cause of the error is that the application entry file path is incorrect. This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native.

I'm trying to configure an existing react-native project, but I'm facing the above issue with it.

I do not have picker in the project while it is showing following error. Added @react-native-picker/picker as well.

In My case I removed @davidgovea/react-native-wheel-datepicker this package which uses old dependencies which caused the issue.

Did you ever solve this @arvind? I also have this problem

Thanks!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM