Chrome debugger breakpoints fail with react-scripts 2.x after hot-update
Author: nerdcityCreated Dec 20, 2018Updated Sep 7, 2026
Labelsissue: bug
### Is this a bug report?
yes
### Did you try recovering your dependencies?
test-cra $npm --version
5.6.0
test-cra $yarn --version
1.12.3
### Which terms did you search for in User Guide?
I looked for "hot-update" and "breakpoint"
### Environment
System:
OS: macOS High Sierra 10.13.6
CPU: x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
Binaries:
Node: 8.11.1 - ~/.nvm/versions/node/v8.11.1/bin/node
Yarn: 1.12.3 - /usr/local/bin/yarn
npm: 5.6.0 - ~/.nvm/versions/node/v8.11.1/bin/npm
Browsers:
Chrome: 71.0.3578.98
Firefox: 63.0.1
Safari: 11.1.2
npmPackages:
react: ^16.7.0 => 16.7.0
react-dom: ^16.7.0 => 16.7.0
react-scripts: 2.1.1 => 2.1.1
npmGlobalPackages:
create-react-app: Not Found
### Steps to Reproduce
1. ran "yarn create react-app test-cra"
2. ran "yarn install"
3. ran "yarn start"
4. Chrome opened a window for http://localhost:3000, with the app in it
5. I opened Chrome dev tools and went to the source tab
6. I hit cmd-P and opened App.js
7. I set a breakpoint at line 7, the first line of the render() method
8. I clicked on the "reload this page" arrow in the "React App" browser window
9. the debugger in dev tools window stopped at the breakpoint
10. I hit F8 to unpause
** this is all good, and I am able to repeat steps 8-10 successfully any number of times
11. in IntelliJ I edited the App.js file so it was like this:
```
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
Edit src/App.js and save to reload.
Source: react/create-react-app