Attempted import error: 'ViewPropTypes'
See original GitHub issueC:/Projects/ReactNative/pwaExpo/node_modules/react-native-snap-carousel/src/pagination/PaginationDot.js
Attempted import error: 'ViewPropTypes' is not exported from 'react-native-web/dist/index'.
-
“expo”: “~39.0.2”
-
“react-native”: “https://github.com/expo/react-native/archive/sdk-39.0.3.tar.gz”,
-
“react-native-web”: “~0.14.0”,
"@babel/core": "~7.11.6", "@babel/plugin-transform-react-jsx-source": "^7.10.5", "@expo/webpack-config": "^0.12.38", "babel-plugin-import": "^1.13.1", "babel-plugin-root-import": "^6.5.0" },```
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:6
Top Results From Across the Web
Attempted import error: 'ViewPropTypes' is not exported from ...
I tried to access the app using Expo Web and got one error in terminal and one in the browser. It seemed to...
Read more >How I solved the >>'ViewPropTypes' is ... - DEV Community
Introduction. I couldn't find the fix for this error anywhere in the react-native-snap-carousel package, and it was really frustrating.
Read more >How I solved the >>'ViewPropTypes' is not exported from ...
Import react-style-proptype , as prescribed by the documentation, in each file mentioned above. 4. Replace all instances of ViewPropTypes ? ViewPropTypes.style ...
Read more >ViewPropTypes has been removed from React Native. Migrate ...
import { findNodeHandle, Platform, NativeModules, ViewPropTypes, requireNativeComponent, ... I had the same error using react-native-camera.
Read more >viewproptypes has been removed from react native. migrate to ...
find ViewPropTypes import in the node modules in which library this gives error ... tried to update react-native version 0.69.1 getting this error...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For those who want to automate this fix until this issue is resolved - here is a combined version of this and this workarounds in one
.sh
-script:Put this into
.sh
-file somewhere in your project and then add the following command topostinstall
inpackage.json
:Then the necessary fix will be applied after each dependencies install.
Regards, Ilya
I managed to get it working with this work around