question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Styleguidist not working with npm 2 (error in make-webpack-config.js)

See original GitHub issue

The 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 of entities 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:closed
  • Created 7 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
sapegincommented, Apr 21, 2016

I think that this is more important

But there’s no easy fix if it’s possible to fix at all.

Shall I add include: node_modules to the loader then?

Yeah, I think so.

0reactions
mik01ajcommented, Apr 29, 2016

Yes, this was already reported in #135.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found