-
Notifications
You must be signed in to change notification settings - Fork 306
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
[Bug] Uncaught exception when running Storybook on localhost #1731
Comments
I can't guess what's wrong based on this information. Showing errors that aren't attributed to any line is a known problem in Firefox's implementation of extension content scripts. Try looking at the browser console (Ctrl-Shift-Alt-i) in multiprocess mode. |
As for tracing, you can add logging breakpoints in devtools at various points of our two content scripts (apply.js and style-injector.js). To see the scripts you'll need to enable "addon and chrome debugging" checkbox in devtools options. |
No new info in the console. As for breakpoints, I don't know where to place them as I don't know what might be causing the error, so try doing it in every function, then once you found which one is causing it, add more breakpoints inside. There are many tutorials on how to add breakpoints in firefox devtools, here's the top search result for one: https://firefox-source-docs.mozilla.org/devtools-user/debugger/how_to/set_a_breakpoint/index.html |
Bug Report
Bug Description
When running an instance of Storybook on localhost, Stylus outputs this to the console:
No source file or line number is on the right. Also can't expand it for more information. This is literally all there is to it. It always outputs 6 of these errors in rapid succession, once per full page load.
This doesn't happen on other things running on localhost, so it's not related to it being localhost. I also can't reproduce it on some of the showcases that are publibly available. So my guess it's a combination of running Storybook AND it running on localhost.
But it is quite definitely due to this addon, because disabling it makes the errors go away, and re-enabling stylus brings back these errors.
Screenshots
System Information
Additional Context
Unfortunately, Storybook is not something you can just download and run. It's a developer's tool that needs to be installed into a pre-existing project. And I'm not even sure if this bug will occur in every such project. So maybe I just need some pointers to how to provide more information - for instance, how do I made it output a trace on these uncaught exceptions. The debugger refuses to stop when enabling "pause on exceptions", probably because it happens inside an addon.
I think it's best to start with how I can make stylus also output a trace, or at least a source file & line number, right?
The text was updated successfully, but these errors were encountered: