Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TS2322: Type 'LanguageSupport | StreamLanguage | null' is not assignable to type 'Extension'. #621

Open
ywww opened this issue Jan 20, 2024 · 1 comment

Comments

@ywww
Copy link

ywww commented Jan 20, 2024

                <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'.

@jaywcjlove
Copy link
Member

@ywww If you can provide an example that reproduces the error, I can help you take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants