Sourcemaps crash and don't work until devtools is restarted
Reported by
christia...@vincit.fi,
Jan 24 2018
|
|||
Issue descriptionUserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36 Steps to reproduce the problem: 1. Build your JavaScript and CSS and use sourcemaps 2. Keep devtools open & develop on a site (using hot reload, happens without too) 3. After the earth rotates a fraction of a degree, the sourcemaps stop working, and all I see is bundle.js:someuselesslinenumber. When this happens, React devtools (by Facebook) also stops working, and simply sits at "Looking for React" forever. 4. Restarting devtools temporarily fixes the problem What is the expected behavior? That the devtools wouldn't crash 15 to 30 times in an hour. What went wrong? The source maps stop working randomly, sometimes a hot reload triggers it, sometimes they work for a few seconds and then crash, sometimes there's no problems. Did this work before? No Chrome version: 60.0.3112.90 Channel: stable OS Version: Arch Linux Flash Version: Sourcemaps have always been buggy as hell. I don't think that they've ever worked without a hitch. I've had the sourcemap problem on Windows, OSX, and three different Linux distributions for many years. Different accounts, different sets of extensions, nothing in common to connect. The sourcemap crash isn't related to a spesific build tool either, I've used sass & stylus directly, through grunt & gulp, and the last two years I've used Rollup and Webpack to bundle JavaScript. Better screenshots: https://github.com/facebook/react-devtools/issues/965
,
Jan 31 2018
Thanks for the report. kozy@, perhaps there might be a race. Do you happen to have an umbrella bug for sourcemaps?
,
Sep 26
I developed react app for a while but I can not reproduce this bug. Since 60 we landed couple big source map improvements and I hope that DevTools work better in latest Google Chrome Canary. If you are still experiencing this issue, please file another bug. It would be nice if you can open DevTools on DevTools and copy paste errors from console if any are presented there. To open DevTools on DevTools you can: - undock DevTools, - press Ctrl + Shift + I. |
|||
►
Sign in to add a comment |
|||
Comment 1 by susanjun...@techmahindra.com
, Jan 24 2018