uiwjs / react-codemirror

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

Problem on installation due a peer dependency: lezer #537

Closed JaimeFLandbot closed 1 year ago

JaimeFLandbot commented 1 year ago

Has anyone experience any problems just by installing the library?. After adding @uiw/react-codemirror my react project is unable to build due a problem with lezer package, that it is used by codemirror under the hood.

Captura de pantalla 2023-07-13 a las 9 50 11

jaywcjlove commented 1 year ago

@JaimeFLandbot Clean up node_modules and package-lock.json to reinstall?

JaimeFLandbot commented 1 year ago

I did it, but it didn't change anything. Same behaviour.

jaywcjlove commented 1 year ago

@JaimeFLandbot If you provide a reproducible example, I can try to help you.

JaimeFLandbot commented 1 year ago

Thank @jaywcjlove for taking the time to read this.

I'm gonna close this conversation. I was working on creating a public repo to replicate the problem, but after working on it, I've found the conflict only appears when codemirror is installed in the same repo with one of our private packages.

So the problem seems to be caused for a missmatch dependency in our side.