uiwjs / uiwjs/react-codemirror
TS2322: Type 'LanguageSupport | StreamLanguage | null' is not assignable to type 'Extension'.
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 2.3k
- Forks
- 161
- PR merge metrics
- No merged PRs in 30d
Description
<CodeMirror
style={{fontSize: fontSize, fontFamily: fontFamily}}
value={value}
width={'100%'}
theme={themes[theme]}
basicSetup={{tabSize: 2}}
indentWithTab={true}
readOnly={disabled}
height={height || 200 + 'px'}
extensions={[loadLanguage("yaml"),EditorView.lineWrapping]}
onChange={this.props.onChange}
/>
TS2322: Type 'LanguageSupport | StreamLanguage | null' is not assignable to type 'Extension'.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named; start with the CodeMirror JSX snippet and inspect loadLanguage("yaml") alongside the extensions prop type. Done means the TypeScript error is resolved for the YAML extension; use the repository's TypeScript check to verify it.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100