uiwjs / react-codemirror

CodeMirror 6 component for React. @codemirror https://uiwjs.github.io/react-codemirror/
https://uiwjs.github.io/react-codemirror/
MIT License
1.61k stars 128 forks source link

Unrecognized extension value in extension set ([object Object]). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks. #613

Open Reputation-Liberty opened 8 months ago

Reputation-Liberty commented 8 months ago

1 version: image code: image

jaywcjlove commented 8 months ago

@Reputation-Liberty

alimtunc commented 8 months ago

@Reputation-Liberty

These solutions are not working and are juste workaround...

virtuallyunknown commented 4 months ago

Got the same issue today after upgrading a bunch of codemirror related packages.

 "@uiw/codemirror-extensions-langs": "^4.21.21",
 "@uiw/codemirror-theme-github": "^4.21.21",
 "@uiw/codemirror-themes": "^4.21.21",
 "@uiw/react-codemirror": "^4.21.21",

Manually deleted node_modules and pnpm-lock.yaml, ran pnpm install once more and it worked again.

Binlogo commented 4 months ago

I used the "@codemirror/legacy-modes": "6.3.3", got the same issue, after update relative deps, fixed.

-  "@codemirror/legacy-modes": "6.3.3",
+ "@codemirror/legacy-modes": "6.4.0",

-  "@uiw/react-codemirror": "4.21.21",
+ "@uiw/react-codemirror": "^4.21.21",