facebook / metro

🚇 The JavaScript bundler for React Native
https://metrobundler.dev
MIT License
5.22k stars 626 forks source link

"Module `schedule/tracking` does not exist in the Haste module map" still points to a locked issue in another repo #271

Open Kerrick opened 6 years ago

Kerrick commented 6 years ago

Do you want to request a feature or report a bug? Bug

What is the current behavior? Getting a specific error causes the following to be logged:

error: bundling failed: Error: Unable to resolve module `schedule/tracking` from `/Users/kerrick/Developer/react-native-firebase-starter/node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js`: Module `schedule/tracking` does not exist in the Haste module map

This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
  1. Clear watchman watches: `watchman watch-del-all`.
  2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
  3. Reset Metro Bundler cache: `rm -rf /tmp/metro-bundler-cache-*` or `npm start -- --reset-cache`.
  4. Remove haste cache: `rm -rf /tmp/haste-map-react-native-packager-*`.

What is the expected behavior? The mentioned URL should not point to an issue that has been closed and locked.

vforvasile commented 6 years ago

Check this for a quick solution: https://github.com/facebook/react-native/issues/21150

HitarthiPanchal commented 6 years ago

Can any one help me in this?

error: bundling failed: Error: Unable to resolve module schedule/tracking from /Users/kerrick/Developer/react-native-firebase-starter/node_modules/react-native/Libraries/Renderer/oss/ReactNativeRenderer-dev.js: Module schedule/tracking does not exist in the Haste module map

I have upgradrd react from 0.55 >0.57.2 and after that I got this error while bundling..

This is my package.json


{
  "name": "Fitspot",
  "version": "2.0.0",
  "description": "Fitspot Mobile V2",
  "repository": {
    "type": "git",
    "url": "https://github.com/fitspot/fitspot-react"
  },
  "license": "UNLICENSED",
  "author": "Fitspot",
  "scripts": {
    "start": "node_modules/react-native/packager/packager.sh",
    "build-ios": "node node_modules/react-native/local-cli/cli.js bundle --entry-file index.ios.js --bundle-output iOS/main.jsbundle --platform 'ios' --assets-dest ./  --dev false --reset-cache",
    "build-android": "node node_modules/react-native/local-cli/cli.js bundle --entry-file index.android.js --bundle-output iOS/main.jsbundle --platform 'android' --assets-dest ./  --dev false --reset-cache"
  },
  "engines": {
    "node": ">=6",
    "npm": ">=5"
  },
  "dependencies": {
    "@babel/runtime": "^7.1.2",
    "analytics-react-native": "1.2.0",
    "apisauce": "^1.0.0",
    "babel-core": "7.0.0-bridge.0",
    "babel-preset-es2015": "^6.18.0",
    "es6-promise": "^4.0.5",
    "flow-bin": "^0.83.0",
    "geolib": "^2.0.22",
    "immutable": "^3.8.1",
    "intl": "^1.2.5",
    "isomorphic-fetch": "^2.2.1",
    "lodash": "^4.17.11",
    "lodash.range": "^3.2.0",
    "prop-types": "^15.6.1",
    "raven-js": "^3.24.0",
    "react": "16.6.0-alpha.8af6728",
    "react-native": "^0.57.2",
    "react-native-apple-healthkit-rn0.40": "^0.3.2",
    "react-native-blur": "^3.2.2",
    "react-native-button": "^2.3.0",
    "react-native-checkbox": "^2.0.0",
    "react-native-datepicker": "^1.6.0",
    "react-native-device-info": "^0.24.0",
    "react-native-easy-toast": "^1.1.0",
    "react-native-fbsdk": "^0.8.0",
    "react-native-firebase": "^5.0.0",
    "react-native-geocoder": "^0.5.0",
    "react-native-gifted-chat": "^0.4.3",
    "react-native-global-props": "^1.1.4",
    "react-native-image-crop-picker": "^0.21.2",
    "react-native-image-picker": "^0.27.1",
    "react-native-image-slider": "^2.0.3",
    "react-native-keyboard-aware-scroll-view": "^0.7.3",
    "react-native-maps": "^0.22.0",
    "react-native-modal-dropdown": "^0.6.2",
    "react-native-picker": "^4.3.6",
    "react-native-picker-select": "^4.4.0",
    "react-native-popup-menu": "^0.14.0",
    "react-native-radio-buttons": "^1.0.0",
    "react-native-router-flux": "^4.0.5",
    "react-native-search-filter": "^0.1.3",
    "react-native-segmented-android": "^1.0.4",
    "react-native-snap-carousel": "3.7.5",
    "react-native-stars": "^1.1.3",
    "react-native-swipeout": "^2.3.3",
    "react-native-swiper": "^1.5.13",
    "react-native-tableview-simple": "0.18.1",
    "react-native-vector-icons": "^6.0.2",
    "react-native-video": "^3.2.1",
    "react-native-zendesk-chat": "^0.2.2",
    "react-redux": "^5.0.7",
    "recompose": "^0.30.0",
    "redux": "^4.0.0",
    "redux-thunk": "^2.2.0"
  },
  "devDependencies": {
    "@babel/core": "^7.0.0-beta.46",
    "@babel/plugin-external-helpers": "^7.0.0",
    "@babel/plugin-transform-runtime": "7.0.0",
    "babel-eslint": "^10.0.1",
    "babel-loader": "^8.0.0-beta.2",
    "babel-plugin-module-resolver": "^3.1.1",
    "babel-plugin-transform-define": "^1.3.0",
    "babel-preset-react-native-stage-0": "^1.0.1",
    "eslint": "^5.6.1",
    "eslint-config-airbnb": "^17.1.0",
    "eslint-plugin-babel": "^5.2.1",
    "eslint-plugin-import": "^2.9.0",
    "eslint-plugin-jsx-a11y": "^6.1.2",
    "eslint-plugin-react": "^7.7.0",
    "immutability-helper": "^2.8.1",
    "metro-react-native-babel-preset": "^0.48.1",
    "reactotron": "^0.9.0",
    "reactotron-react-native": "^2.1.0",
    "reactotron-redux": "^2.1.0",
    "redux-logger": "^3.0.6"
  }
}

Please help me out