-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breakpoints or Source Maps not working properly in Chrome #457
Comments
I've also seen this issue. |
@arunoda Could you please add this feature, it would help me (and others) so much to learn React. <3 |
webpack/webpack#2145 has the discussion and temporary fix. |
@nikhilbaradwaj Thanks for the reference. |
@nikhilbaradwaj Thanks but this did not fix the problem of being able to stop on debug points, but not being able to see which javascript line the code is "breaks" on for me. I still see @mindjuice error earlier. |
@arunoda I changed node_modules/@kadira/storybook/dist/server/webpack.config.js to use devtool: 'inline-source-map' instead of devtool: '#cheap-module-eval-source-map' and this problem was resolved. Technically, I don't like to change config files in node_modules. I think maybe we can do something to the webpack.config file? Changing it in node_module not the best idea, it usually gets gitignored. |
If you are still experiencing this issue please re-open 👍 |
I am having this issue when developing a react storybook. |
What version are you using @knaos ? |
Still an issue on 4.1.6 |
@dagatsoin I'm currently on 4.1.11 and it's just a matter of adding the following on your storybook webpack config: config.devtool = 'inline-source-map'; |
Thanks @markov00 , your solution worked for me. For those like me who are still new to storybook, follow this example to update the storybook webpack config. |
I'm using Storybook for some components, but breakpoints are not working correctly in Chrome Dev Tools.
I was able to reproduce the same issue in the
kadira-samples/react-storybook-demo
app with no modifications (the Todos app sample). Just clone it from github, donpm i
andnpm run storybook
and open your browser tolocalhost:9001
.If I open
TodoItem.js
in the Chrome Dev Tools "Source" tab, and put a breakpoint on the first line ofrender()
, then make a change in Storybook that causes a TodoItem to need to re-render (e.g., mark one as complete), the debugger "breaks", but the file that Chrome Dev Tools shows has the name?d41d
, and the contents of the file is just the following:Switching over to
TodoItem.js
has no effect, and single stepping just continues execution.Anyone else have debugging working in Storybook?
The text was updated successfully, but these errors were encountered: