Open wymli opened 3 months ago
I found that in my local development environment, there is no collapse arrow in front of some variables.
I found that in online demo env(https://uiwjs.github.io/react-codemirror/#/extensions/languages), it works well.
import CodeMirror from '@uiw/react-codemirror'; // https://github.com/uiwjs/react-codemirror import { githubLight } from '@uiw/codemirror-theme-github'; // https://uiwjs.github.io/react-codemirror/#/theme/data/github/light import { loadLanguage, langNames, langs, } from '@uiw/codemirror-extensions-langs'; <CodeMirror value={data} readOnly={true} height="80vh" width="90vw" extensions={[githubLight, loadLanguage('json')]} />
"@uiw/codemirror-extensions-langs": "^4.22.2", "@uiw/codemirror-theme-github": "^4.22.2", "@uiw/react-codemirror": "^4.22.2",
codesandbox Thanks in advance!
@wymli I did encounter this issue during testing, but I haven't identified the cause yet.
What I see
I found that in my local development environment, there is no collapse arrow in front of some variables.
What I expect
I found that in online demo env(https://uiwjs.github.io/react-codemirror/#/extensions/languages), it works well.
How I use it
Reproduce
codesandbox Thanks in advance!