Comments (6)
Seems like CLI requires to explicitly define config through --config
, which is a bit confusing. Making UX a bit better, it's probably better to look for standard config name styleguide.config.js
in the folder, before failing with error.
from react-styleguidist.
Of course it does it. But I don’t understand how you run styleguidist
. Did you install it globally?
Works fine for me:
~/example
❯ npm i -D react react-dom react-styleguidist
~/example
❯ ./node_modules/.bin/styleguidist build
Building style guide...
from react-styleguidist.
I've installed it globally, and run as a CLI.
from react-styleguidist.
Never tried that and not sure it works. Actually I don‘t see any reason to do it :-)
from react-styleguidist.
Strange, because it's described in the documentation of the project https://github.com/sapegin/react-styleguidist#cli-commands-and-options
from react-styleguidist.
Right now it says:
These commands supposed to be placed in package.json scripts (see Installation section above). If you want to run them from command line do it like this: ./node_modules/.bin/styleguidist.
If you see any value in working global installation and can fix it I’ll be happy to merge a PR.
from react-styleguidist.
Related Issues (20)
- Issue with editing the markdown
- Module parse failed: Unexpected token (1:0)
- Will PR #1700 be merged into the main branch? HOT 1
- Broken React 17 support in v13.1.0 HOT 4
- ComplexTypeRenderder - ComplexTypeRenderer filename typo
- How to maintain versions ? HOT 1
- Breakage on build with webpack v5
- JSDoc URL is incorrect within documentation HOT 1
- Support ESM for the styleguide.config.js file
- upgrading styleguidist (node:55652) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'getCompilationHooks' of undefined HOT 4
- Error: Invalid hook call. Hooks can only be called inside of the body of a function component.
- Error: Invalid hook call. Hooks can only be called inside of the body of a function component.
- Error: Invalid hook call.
- Webpack 5 does not return compiler object with callback
- The preview doesn't rerenders after error
- Improve footer and add social icons HOT 3
- Installed webpack, babel, styleguidist and ends up throwing error when built HOT 2
- Unknown type undefined HOT 1
- Share styleguidist components between applications
- High vuln in webpack-dev-server/webpack-dev-middleware
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-styleguidist.