React-styleguidist: Module not found: Error: Can't resolve 'markdown-to-jsx'

Created on 27 Apr 2017  ·  5Comments  ·  Source: styleguidist/react-styleguidist

Today I started the styleguidist and got an error:

ModuleNotFoundError: Module not found: Error: Can't resolve 'markdown-to-jsx' ...

This probably happened because of the markdown-to-jsx package update to 5.3.0

I was able to fix the problem by installing the package in my project

npm i [email protected]

However, this should not be considered as a solution.


About my package.json:

"react-styleguidist": "5.1.1",

Does anyone have a similar error?

bug

Most helpful comment

Let’s wait for this PR: https://github.com/probablyup/markdown-to-jsx/pull/105

If they won’t merge it today, I’ll fix the previous version in our dependencies.

All 5 comments

Yep, markdown-to-jsx v5.3.0 is broken: https://github.com/probablyup/markdown-to-jsx/issues/104.

Let’s wait for this PR: https://github.com/probablyup/markdown-to-jsx/pull/105

If they won’t merge it today, I’ll fix the previous version in our dependencies.

Hacked temporarily fixed in 5.1.6.

how about this ?

npm install markdown
import Markdown from 'markdown';

I have tried the above suggestions and deduced that after running a command

npm install markdown
and importing from
import ReactMarkdown from 'markdown';
it finally worked for me

Was this page helpful?
0 / 5 - 0 ratings