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鈥檚 wait for this PR: https://github.com/probablyup/markdown-to-jsx/pull/105

If they won鈥檛 merge it today, I鈥檒l 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鈥檚 wait for this PR: https://github.com/probablyup/markdown-to-jsx/pull/105

If they won鈥檛 merge it today, I鈥檒l 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

Related issues

gargroh picture gargroh  路  3Comments

crobinson42 picture crobinson42  路  3Comments

sapegin picture sapegin  路  3Comments

magicmark picture magicmark  路  3Comments

ZwaarContrast picture ZwaarContrast  路  4Comments