You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running yarn run styleguide launches the styleguidist dev server
Actual Behavior
❯❯❯ yarn run styleguide
yarn run v0.19.1
$ styleguidist server
Style guide server started at:
http://0.0.0.0:6060
Cannot load ./src/components/Button/index.js: you may need an appropriate webpack loader to handle this file type.
Learn how to configure your style guide:
https://react-styleguidist.js.org/docs/webpack.html
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
When I run yarn run styleguide -- --verbose I see than webpack configs are different. The only difference I see so far is that react-scripts in dependencies in your repo and in devDependencies in mine.
I was using the old version, that’s why it was in devDependencies. But I have no idea why it doesn’t work with dependencies — it shouldn’t be any different ;-|
How to reproduce
Bootstrap a new app w/ create-react-app
Follow the getting started guide to add styleguidist :
package.json
src/components/Button/index.js
src/components/Button/Readme.md
Expected Behavior
Running
yarn run styleguide
launches the styleguidist dev serverActual Behavior
Source w/ reproducible issue :
https://github.com/mru2/teststyleguidist
The text was updated successfully, but these errors were encountered: