You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Naaah not explicitly. If you want to use Codemirror via React you can not use this library. You´ll have to integrate the "normal" codemirror yourself. I´m using the newest version (Codemirror 6) right now.
You can watch some tutorials and read the docs. It´s kinda tricky to get into but all makes sense in the end.
Are you using uiw / code mirror module? I have already mentioned that you prefer that., since code mirror isn't yet supported for react 18.2.0 either use a older version of react or use uiw/code mirror check the above repository codevim you can find the code for it.
Please I've been on this same issue for 2 days now is there any solution yet? I'm trying to use react-codemirror2 with peer dependency codemirror on React 18.2.0 and still haven't found a way out. I appreciate your assistance in advance!
npm WARN using --force Recommended protections disabled.
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: react-codemirror2@7.2.1
npm WARN Found: react@18.2.0
npm WARN node_modules/react
npm WARN peer react@"^18.0.0" from @testing-library/react@13.4.0
npm WARN node_modules/@testing-library/react
npm WARN @testing-library/react@"^13.4.0" from the root project
npm WARN 3 more (react-dom, react-scripts, the root project)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@">=15.5 <=16.x" from react-codemirror2@7.2.1
npm WARN node_modules/react-codemirror2
npm WARN react-codemirror2@"7.2.1" from the root project
npm WARN
npm WARN Conflicting peer dependency: react@16.14.0
npm WARN node_modules/react
npm WARN peer react@">=15.5 <=16.x" from react-codemirror2@7.2.1
npm WARN node_modules/react-codemirror2
npm WARN react-codemirror2@"7.2.1" from the root project
added 2 packages, and audited 1480 packages in 8s
231 packages are looking for funding
run npm fund for details
7 vulnerabilities (1 moderate, 6 high)
To address all issues (including breaking changes), run:
npm audit fix --force
Run npm audit for details.
@Favourz1 , I used your command, this came up but codemirror is now installed, however are these warnings concerning or should i ignore them? (PS: I am new to React)
Activity
kaushikc44 commentedon Oct 18, 2022
Even I am facing some issues.
curiosity110 commentedon Oct 31, 2022
Did you guys found a way?
DanielJonasMielke commentedon Oct 31, 2022
Naaah not explicitly. If you want to use Codemirror via React you can not use this library. You´ll have to integrate the "normal" codemirror yourself. I´m using the newest version (Codemirror 6) right now.
You can watch some tutorials and read the docs. It´s kinda tricky to get into but all makes sense in the end.
https://codemirror.net/
Good luck
kaushikc44 commentedon Oct 31, 2022
Yes , I found a way , https://uiwjs.github.io/react-codemirror/ I used this, and it worked for me , you can check here www.codevim.tech
curiosity110 commentedon Oct 31, 2022
Thanks for your reply
I am gonna try with this one
https://uiwjs.github.io/react-codemirror/
if doens't work i am gonna build my own Thanks so much!
DanielJonasMielke commentedon Oct 31, 2022
I tried that one as well. Notice that it´s not as customizable as the standard codemirror, which isn´t too much setup in the end!
kaushikc44 commentedon Oct 31, 2022
No its not , Please go through my code from here https://github.com/kaushikc44/codevim
ArchanaSharma95 commentedon Nov 23, 2022
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: builder-cub@1.0.0
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR! react@"^18.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@">=15.5 <=16.x" from react-codemirror2@7.2.1
I'm facing the same issue. Is there any solution that worked?
kaushikc44 commentedon Nov 23, 2022
Are you using uiw / code mirror module? I have already mentioned that you prefer that., since code mirror isn't yet supported for react 18.2.0 either use a older version of react or use uiw/code mirror check the above repository codevim you can find the code for it.
jaywcjlove commentedon Dec 9, 2022
@MielkeDaniel https://github.com/uiwjs/react-codemirror/tree/v3
Using v3 is the old cm5 version.
Favourz1 commentedon Feb 4, 2023
Please I've been on this same issue for 2 days now is there any solution yet? I'm trying to use react-codemirror2 with peer dependency codemirror on React 18.2.0 and still haven't found a way out. I appreciate your assistance in advance!
7hourspg commentedon Feb 17, 2023
It's worked on react v 18 for me
Favourz1 commentedon Feb 17, 2023
Thanks @7hourspg.
So I'd install the dependencies with
npm i react-codemirror2@7.2.1 codemirror@5.57.0 --force??Dhimantwalia commentedon Feb 18, 2023
npm WARN using --force Recommended protections disabled.
npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: react-codemirror2@7.2.1
npm WARN Found: react@18.2.0
npm WARN node_modules/react
npm WARN peer react@"^18.0.0" from @testing-library/react@13.4.0
npm WARN node_modules/@testing-library/react
npm WARN @testing-library/react@"^13.4.0" from the root project
npm WARN 3 more (react-dom, react-scripts, the root project)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peer react@">=15.5 <=16.x" from react-codemirror2@7.2.1
npm WARN node_modules/react-codemirror2
npm WARN react-codemirror2@"7.2.1" from the root project
npm WARN
npm WARN Conflicting peer dependency: react@16.14.0
npm WARN node_modules/react
npm WARN peer react@">=15.5 <=16.x" from react-codemirror2@7.2.1
npm WARN node_modules/react-codemirror2
npm WARN react-codemirror2@"7.2.1" from the root project
added 2 packages, and audited 1480 packages in 8s
231 packages are looking for funding
run
npm fundfor details7 vulnerabilities (1 moderate, 6 high)
To address all issues (including breaking changes), run:
npm audit fix --force
Run
npm auditfor details.@Favourz1 , I used your command, this came up but codemirror is now installed, however are these warnings concerning or should i ignore them? (PS: I am new to React)
Bhavika-Maurya commentedon Jun 30, 2023
Thank you @7hourspg , it worked for me in React v18
ajay-nishad25 commentedon Jul 22, 2023
hey @7hourspg , thanks buddy for helping
khamkaradinath commentedon Aug 5, 2023
working
Bump peer dependency for React