Module Schedule Does Not Exist In The Haste Module Map
Intro
Hello to all, I read similar questions about this frequent problem, but I wasn't able to solve it.
What did I try ?
I tried to follow the first link, but nothing happen, tried to reinstall scheduler at 0.4.0 version. but nothing, the problem still persists. When I run the app I view in the IOS emulator of Xcode the word " TEST " for a bunch of seconds, and than it crashes.
Json Package
{
"scripts": {
"start": "react-native start",
"android": "react-native run-android",
"ios": "react-native run-ios"
},
"dependencies": {
"react": "16.6.3",
"react-native": "0.58.1"
},
"devDependencies": {
"@babel/core": "^7.3.4",
"@babel/runtime": "7.0.0",
"babel-eslint": "^10.0.1",
"eslint": "^5.15.1",
"eslint-plugin-react": "^7.12.4",
"eslint-plugin-react-native": "^3.6.0",
"metro-react-native-babel-preset": "^0.53.0",
"schedule": "0.4.0"
},
"private": true
}
Expected Behaviour
Not have this crash.
Answer
Not sure why you have schedule in your package.json as dependency. This shouldn't be necessary as it is part of react: https://github.com/facebook/react/tree/master/packages/scheduler
I would suggest to remove it (yarn remove schedule
) or at least upgrade to version 0.5.0 (yarn add --dev [email protected]
) for compatibility with the react version.
Make sure to reset the cache of your packager afterwards: yarn start --reset-cache
Related Questions
- → Import statement and Babel
- → should I choose reactjs+f7 or f7+vue.js?
- → Uncaught TypeError: Cannot read property '__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED' of undefined
- → .tsx webpack compile fails: Unexpected token <
- → React-router: Passing props to children
- → ListView.DataSource looping data for React Native
- → React Native with visual studio 2015 IDE
- → Can't test submit handler in React component
- → React + Flux - How to avoid global variable
- → Webpack, React & Babel, not rendering DOM
- → How do I determine if a new ReactJS session and/or Browser session has started?
- → Alt @decorators in React-Native
- → How to dynamically add class to parent div of focused input field?