-
Notifications
You must be signed in to change notification settings - Fork 110
undefined is not an object (evaluating '_react2.PropTypes.arrayOff') #4
Comments
I have the same issue |
It's because in later versions of react, prop-types is an independent npm module. |
Thank you @IElgohary |
@IElgohary yup, it solved, but every time I did rm -rf node_modules then npm install, we have to write PropTypes at SlideShow.js again, is there any solution for that ? |
@IElgohary What do you mean? I added the npm install and imported proptypes but i still get an error. |
import React from 'react'; class SlideshowGallery extends React.Component {
} export default SlideshowGallery; |
@hesusdios import your prop-type at node_modules/react-native-slideshow/Slideshow.js |
It works 👍 |
@adityajhordan Sorry for the late reply. |
Hi, I have used the above solutions: However, I'm still receiving the error. |
haqihaqi, could you patch your code as IElgohary suggested? |
I am using react-native-slideshow but I get this error: I did as some answer suggested: export default class App extends Component { render() { But I am still getting the same error: |
I solved the issue |
@Muedgar how u solved the issue ? i have same issue here ... |
@haqiqiw Can you push this fix to npm? |
Hi everybody. |
it can be fixed by removing Proptypes which import from react, then import Proptypes from prop-types in Slideshow.js (react-native-slideshow). |
@Muedgar How did you solve that? |
npm install --save prop-types |
can it be from firebase? |
Hello, when i have devlopment with react-native-slideshow, i have one off issue be like
"undefined is not an object (evaluating '_react2.PropTypes.arrayOff')".
this is errors display http://prntscr.com/hhm4u1
Could you help me? Thanks
The text was updated successfully, but these errors were encountered: