After i deleted my src folder in order to refactor this error occurred. I believe this is a caching issue? I tried following this gist but no luck.
"react": "16.4.1",
"react-native": "0.56.1",
"@babel/core": "^7.1.2",
"presets": ["react-native"]
`
import React, { Component } from 'react';
import { Platform, Text, View } from 'react-native';
import { Provider } from 'react-redux';
import { store } from './src/redux/store';
export default class App extends Component<Props> {
state = {
isLoadingComplete: false,
};
render() {
return (
<View>
<Text>Hello??</Text>
<Text>Hello??</Text>
<Text>Hello??</Text>
<Text>Hello??</Text>
<Text>Hello??</Text>
<Text>Hello??</Text>
<Text>Hello??</Text>
</View>
);
}
}
`
Open your terminal/CMD/shell and run these commands one after another
cd yourProjectDiectory ----> navigate to your project directory
watchman watch-del-all
rm -rf node_modules/.cache
react-native start --resetCache
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With