Styleguidist not working with npm 2 (error in make-webpack-config.js)
See original GitHub issueThe problem is here: https://github.com/sapegin/react-styleguidist/blob/3a7271fc59ada1bcb959d62d174d64fecdc69645/src/make-webpack-config.js#L73
getPackagePath('entities')
breaks, because entities
is not a dependency of styleguidist. entities
is a dependency of markdown-it
, which is a dependency of styleguidist, so:
- when installed with npm 2, the
entities
module is not accessible from styleguidist, - when installed with npm 3, the
entities
module is not guaranteed to be always accessible from styleguidist (because if some of other dependencies starts depending on another version ofentities
package, npm 3 will nest them).
@sapegin, could you explain why is the json loader needed there?
Maybe we could change the regex to target specifically these files? Or the other way round, enable it for any *.json
files?
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Example fails with `config not found` · Issue #35 - GitHub
Error : Styleguidist config not found: styleguide.config.js. at ... working global installation and can fix it I'll be happy to merge a PR....
Read more >How can I get React styleguidist to install correctly and get ...
Run that and it should work fine. I haven't had any issues yet and have been happily ignoring what is a mere warning...
Read more >react-styleguidist - npm
React Styleguidist is a component development environment with hot reloaded dev server and a living style guide that you can share with your ......
Read more >vue-styleguidist@4.54.3 - jsDocs.io
Documentation for npm package vue-styleguidist@4.54.3 - jsDocs.io. ... Helper function to create type safe configs in JavaScript ...
Read more >styleguidist/styleguidist - Gitter
I've read and created a styleguide.config.js with this: ... I'm having issues when trying to run styleguidist on my React project (created with ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
But there’s no easy fix if it’s possible to fix at all.
Yeah, I think so.
Yes, this was already reported in #135.