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.

Can't resolve 'react-codemirror'

See original GitHub issue

Hi guys just added snapguidist on my styleguidist and I have to install react-codemirror as a dependency in order to make project compile. Should it need to be added as a dependency into snapguidist perhaps?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MicheleBertolicommented, Aug 31, 2017

The reason is not obscure, codemirror and react-codemirror used to be dependencies of styleguidist, therefore they were peer for snapguidist. We just need to move to react-codemirror2 as styleguidist did, as we don’t want have separate dependencies. Thanks @dbertella.

1reaction
sapegincommented, Aug 31, 2017

For some obscure reason codemirror and react-codemirror are peer dependencies, they should be normal dependencies.

I also recommend to upgrade to https://github.com/scniro/react-codemirror2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CodeMirror does not work with React/Webpack - Stack Overflow
Yes, it's an actual answer. You should just import some codemirror's css in your entrypoint file as it did in the example import...
Read more >
can't resolve codemirror in node_modules/react-codemirror2
Assignees. No one assigned ; Projects. None yet ; Milestone. No milestone.
Read more >
react-codemirror2 - npm
a tiny react codemirror component wrapper. ... Start using react-codemirror2 in your project by running `npm i react-codemirror2`.
Read more >
[Help] Running into loader-related issue when trying to use ...
Hi, I'm just starting out with programming and trying to implement CodeMirror into a Javascript React project I'm working on.
Read more >
react-codemirror | Yarn - Package Manager
You can interact with the CodeMirror instance using a ref and the getCodeMirror() method after the componentDidMount lifecycle event has fired (including inside ......
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