react-native: React Packager "Unexpected raw mappings" in 0.43.0-rc.2

Description

After starting Perf Monitor with Dev settings off, React Packager eventually choked without me doing anything with:

 ERROR  Unexpected raw mappings for G:\mobile\cadastro\lib\root.js
{"name":"Invariant Violation","framesToPop":1}
Invariant Violation: Unexpected raw mappings for G:\mobile\cadastro\lib\root.js
    at invariant (G:\mobile\cadastro\node_modules\react-native\node_modules\fbjs\lib\invariant.js:44:15)
    at getModules.forEach.module (G:/mobile/cadastro/node_modules/react-native/packager/src/Bundler/Bundle.js:222:7)
    at Array.forEach (native)
    at Bundle._getCombinedSourceMaps (G:/mobile/cadastro/node_modules/react-native/packager/src/Bundler/Bundle.js:217:23)
    at Bundle.getSourceMap (G:/mobile/cadastro/node_modules/react-native/packager/src/Bundler/Bundle.js:245:14)
    at Bundle.getSourceMapString (G:/mobile/cadastro/node_modules/react-native/packager/src/Bundler/Bundle.js:251:34)
    at building.then.p (G:/mobile/cadastro/node_modules/react-native/packager/src/Server/index.js:777:31)
    at process._tickCallback (internal/process/next_tick.js:109:7)

Reproduction

  • Enable perf monitor
  • Reload a couple of times

Additional Information

  • React Native version: 0.43.0-rc.2
  • Platform: Android
  • Operating System: Windows 10 x64

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 26
  • Comments: 25 (1 by maintainers)

Most upvoted comments

I think I found a way around this issue, at least for my setup. From the development menu on my android I selected Dev Settings and re-enabled JS Dev Mode that resolved this issue for me.

I am getting this as well. So on DEV mode ON, chrome debugging works the first time. Upon reload, the app is just a white screen. So I have to turn off Remote JS Debugging in order to get the app back again. Rinse and repeat cycle. 😕

"react-native": "0.44.0" I am using "react-native-navigation": "^1.1.81" though. Not sure if this has something to do with it.

+1 Same issue. When I enable Remote Debugger and reload - Particularly when there is a reload after some change is made in a file.

+1 When I do reload and disable JS Dev Mode at using Remote JS Debug.

Unexpected raw mappings for /Volumes/mx200/ReactNativeProject/accupassnative/js/Globals.js
{"name":"Invariant Violation","framesToPop":1}
Invariant Violation: Unexpected raw mappings for /Volumes/mx200/ReactNativeProject/accupassnative/js/Globals.js
    at invariant (/Volumes/mx200/ReactNativeProject/accupassnative/node_modules/fbjs/lib/invariant.js:44:15)
    at /Volumes/mx200/ReactNativeProject/accupassnative/node_modules/react-native/packager/src/Bundler/Bundle.js:222:7
    at Array.forEach (native)
    at Bundle._getCombinedSourceMaps (/Volumes/mx200/ReactNativeProject/accupassnative/node_modules/react-native/packager/src/Bundler/Bundle.js:217:23)
    at Bundle.getSourceMap (/Volumes/mx200/ReactNativeProject/accupassnative/node_modules/react-native/packager/src/Bundler/Bundle.js:245:14)
    at Bundle.getSourceMapString (/Volumes/mx200/ReactNativeProject/accupassnative/node_modules/react-native/packager/src/Bundler/Bundle.js:251:34)
    at /Volumes/mx200/ReactNativeProject/accupassnative/node_modules/react-native/packager/src/Server/index.js:754:31
    at process._tickCallback (internal/process/next_tick.js:103:7)