Can't resolve 'react-codemirror'
See original GitHub issueHi 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:
- Created 6 years ago
- Comments:6 (3 by maintainers)
Top 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 >
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
The reason is not obscure,
codemirror
andreact-codemirror
used to be dependencies ofstyleguidist
, therefore they were peer forsnapguidist
. We just need to move toreact-codemirror2
asstyleguidist
did, as we don’t want have separate dependencies. Thanks @dbertella.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.