Open kishore0995 opened 1 year ago
I'm encountering the same error. I'm not using @codesandbox/sandpack-react
directly, it's a dependency of another library @mdxeditor/editor
. Both @mdxeditor/editor
and my project use "react": "^18.2.0"
.
Any idea for a fix or a workaround?
I think your @mdxeditor/editor
will be using codemirror internally so that it may cause problem..check which version of @codemirror/state
used by mdxeditor
It uses the newest version "@codemirror/state": "^6.4.0"
.
The @mdxeditor/editor
library has an example project one can checkout and try. I tried it. It installs the same version of @codemirror/state
and everything works fine there.
Could it be some configuration problem? My project uses webpack4.
Bug report
Packages affected
Description of the problem
What steps can we take to reproduce the problem?
I have an existing react project where it uses react version "react": "^17.0.2". I am trying to use the sandpack-react in my react project but getting the following error while running the application.
i just use this command given from the doccument
Your Environment