I'd expect sourcemaps of a basic module to enable breakpoint selection on all lines, except those clearly represented differently through transpilation.
A basic component is not debuggable with sourcemaps: clicking on a line to set a breakpoint does not set a breakpoint at that line.
Single page with the source:
import {Component} from "react";
export default class Button extends Component {
render() {
function foo() {
console.log(1);
}
return <button onClick={foo}>hi</button>
}
};
Setting a breakpoint on the line
console.log(1);
Is not possible:

This makes debugging applications quite difficult.
| Tech | Version |
|---------|---------|
| next | 3.2.2 |
| node | 8.4.0 |
| OS | macOS 10.12.6 |
| browser | Google Chrome 61.0.3163.100 |
cc @kpdecker since you updated the sourcemaps 馃憣
I have this problem too and I'm surprised more developers are not complaining about this issue. Is there a workaround for this?
I've updated the testcase repository to React v0.16.x and Next.js ^4.0.3, and can confirm the issue persists in the updated versions.
I've also seen this issue in our app
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.
Most helpful comment
I have this problem too and I'm surprised more developers are not complaining about this issue. Is there a workaround for this?