-
-
Notifications
You must be signed in to change notification settings - Fork 135
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix version lock issue. fix #216
- Loading branch information
1 parent
b98d020
commit b26e854
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#216
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hello @jaywcjlove i faced this issue iam using react v18 now i had to down grade @uiw/react-codemirror to v3 but i also faced duplicated editors
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
? ? ? what is the problem?
@hodasalah
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hodasalah
react-codemirror/core/package.json
Lines 29 to 36 in 4c70f85
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jaywcjlove when i install last version of @uiw/react-codemirror i got
Error: Unrecognized extension value in extension set ([object Object]). This sometimes happens because multiple instances of @codemirror/state are loaded
I tried alot to solve it but I couldn't so I decided to use @uiw/react-codemirror v"^3.2.9" it worked but unfortunately I got 2editors not oneI am using react v18 so I don't know how to solve this problems
So Please What steps should I do to avoid these errors
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hodasalah⚠️ 3.0 cannot be upgraded to 4.0+
#88 (comment)
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jaywcjlove ok i tried to install last version and i followed documentation but i faced error
Error: Unrecognized extension value in extension set ([object Object]). This sometimes happens because multiple instances of @codemirror/state are loaded
if there are a solution I could remove old version and install newest version
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use the command below to see if your version matches. @hodasalah
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hodasalah
react-codemirror/core/package.json
Lines 32 to 33 in c272419
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hello @jaywcjlove
after running npm ls @codemirror/view
i got :
└─┬ @uiw/[email protected]
├─┬ @codemirror/[email protected]
│ └── @codemirror/[email protected] deduped
├─┬ @codemirror/[email protected]
│ └── @codemirror/[email protected] deduped
├── @codemirror/[email protected] deduped
├─┬ @uiw/[email protected]
│ ├─┬ @codemirror/[email protected]
│ │ └── @codemirror/[email protected] deduped
│ └── @codemirror/[email protected] deduped
└─┬ [email protected]
└── @codemirror/[email protected] deduped
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you give me a reproducible example.
@hodasalah
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hodasalah Like the example below.
https://codesandbox.io/embed/react-codemirror-example-codemirror-6-slvju?fontsize=14&hidenavigation=1&theme=dark
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete
node_modules
and reinstall to ensure that the version@codemirror/view
and@codemirror/state
is the same, which basically solves the problem.You don't give an example and there is no way to troubleshoot the problem for you.
@hodasalah
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I'll try to give you an example
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://codesandbox.io/s/laughing-wu-7kbd5z?file=/src/App.js
i tried here it works so please what should i do this is same code in my project
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in node_modules I have two package @uiw and codemirror is this cause this problem
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
│ └── @codemirror/[email protected] deduped
├── @codemirror/[email protected]
├─┬ @codemirror/[email protected] │ └── @codemirror/[email protected] deduped
├─┬ @codemirror/[email protected]
│ └── @codemirror/[email protected] deduped
├─┬ @uiw/[email protected]
│ ├─┬ @codemirror/[email protected]
│ │ └── @codemirror/[email protected] deduped
│ ├─┬ @codemirror/[email protected]
│ │ └── @codemirror/[email protected] deduped
│ ├─┬ @codemirror/[email protected]
│ │ └── @codemirror/[email protected] deduped
│ └── @codemirror/[email protected] deduped
└─┬ [email protected]
└── @codemirror/[email protected] deduped
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hodasalah You didn't give me an example and I can't solve your problem.
b26e854
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jaywcjlove https://codesandbox.io/s/laughing-wu-7kbd5z?file=/src/App.js
this is my code it is same i don't know why it works here but in my app give me the erre