create-react-app-typescript icon indicating copy to clipboard operation
create-react-app-typescript copied to clipboard

Source Maps don't work for `js` or `jsx` files in live dev mode.

Open shobhitg opened this issue 7 years ago • 0 comments

Hi,

Source maps do not work if I add a .js or .jsx file and then try to do live dev using yarn start.

This works in yarn build however.

I have a sample repo here to reproduce the issue: https://github.com/shobhitg/source-map-issue/

Its basically a fresh project. Only thing I did is rename App.tsx to App.jsx.

With App.tsx, it works: screen shot 2018-11-02 at 5 05 50 pm

With App.jsx, it doesn't work: screen shot 2018-11-03 at 12 43 30 pm

Is this a known issue? If yes, is there some workaround by which I can get source maps to work with .jsx files?

shobhitg avatar Nov 03 '18 19:11 shobhitg