react-native icon indicating copy to clipboard operation
react-native copied to clipboard

Failed to parse SourceMap

Open someok opened this issue 10 years ago • 9 comments

Debug at iPhone device.

React Native: 0.25-0.26

package.json:

"babel": {
    "presets": [
      "react-native"
    ]
  },

show error at load begin:

Failed to parse SourceMap: http://192.168.1.xxx:8081/index.ios.map?platform=ios&dev=true&hot=true

The SourceMap has wrong positon after reload: 2016-05-29 5 36 52

someok avatar May 28 '16 21:05 someok

"babel": {
  "presets": [
    "react-native"
  ],
  "sourceMaps": false
}

charpeni avatar May 29 '16 17:05 charpeni

@charpeni thanks, The parse error is dispeared, but the source's map still wrong, like my picture shown.

someok avatar May 30 '16 09:05 someok

+1

rops avatar Jun 02 '16 11:06 rops

After some trial and error, it looked to us like a regression in Chrome. So we went looking and found this recent Chrome defect:

Failed to parse SourceMap https://bugs.chromium.org/p/chromium/issues/detail?id=611328

experimentsin avatar Jun 02 '16 14:06 experimentsin

@experimentsin Good catch.

I'll close this issue since it's related to Chrome, it's already fixed in Canary, it should be fixed soon into Chrome.

charpeni avatar Jun 04 '16 14:06 charpeni

@facebook-github-bot close

charpeni avatar Jun 04 '16 14:06 charpeni

@charpeni tells me to close this issue. If you think it should still be opened let us know why.

facebook-github-bot avatar Jun 04 '16 14:06 facebook-github-bot

@someok 后来解决了? 我也遇到这个问题了, 还没有解决. 貌似跟 你自己定义过 .babelrc 有关.

mactive avatar Jun 23 '16 00:06 mactive

我也遇到了这个问题,现在解决了。 2种解决方案:

第一种方案 1:Setting-extensions-React Developer Tools(是否安装) 如果安装了React Developer Tools插件卸载在重启Chrome

第二种方案安装Chromium浏览器重试

xtdhwl avatar Jul 07 '16 10:07 xtdhwl