-
-
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
Subsequent saves with eslint enabled through Webpack config throw errors #9809
Comments
same problem, it was ok until I replaced addon-info with addon-docs
|
As a temporary workaround you can disable the source-loader: {
name: '@storybook/addon-docs',
options: {
sourceLoaderOptions: null,
},
}, Also, I think this might be fixed with the new source loader available in 6.0-alpha, have you tried that? |
@shamin both working (temp fix with option and also alpha version), so I am using alpha for testing :) |
Hi everyone! Seems like there hasn't been much going on in this issue lately. If there are still questions, comments, or bugs, please feel free to continue the discussion. Unfortunately, we don't have time to get to every issue. We are always open to contributions so please send us a pull request if you would like to help. Inactive issues will be closed after 30 days. Thanks! |
Closing this for now |
👋 Just a follow-up with SB 6.0, the workaround in #9809 (comment) does work, but at the expense of losing out on the snippets. Is there a recommended include/exclude config for enabling eslint within Storybook? That'd be a super useful addition to the docs. |
But it still gives the error in 6.0.x if you don't use the workaround? |
@shilman Appreciate the reply! It was indeed still giving me the error, but adding
Thanks again! |
Describe the bug
Related PR
I'm thinking the aforementioned PR may be causing an issue when eslint is integrated into the webpack config and part of the reloading:
The initial build works fine, but saves after error out with Prettier errors I can't actually fix; potentially something to do with the Docs source-loader?. This worked fine in 5.3.1, but everything after has this issue.
To Reproduce
You can find the complete repo at https://github.com/gremlin/chaoskit/tree/feature/emotion If you download, and run
yarn develop
, saves to*.stories.js
work properly, but if you upgrade all the Storybook deps to the latest, subsequent saves to those stories will throw the error.Expected behavior
eslint should not throw errors within stories.
The text was updated successfully, but these errors were encountered: