const currentView = new EditorView({
lineWrapping: true,
state,
parent: ref,
Get error:
Argument of type '{ lineWrapping: boolean; state: EditorState; parent: HTMLElement | undefined; dispatch: (transaction: Transaction, editorView: EditorView) => void; }' is not assignable to parameter of type 'EditorViewConfig'.
Object literal may only specify known properties, and 'lineWrapping' does not exist in type 'EditorViewConfig'.
As the type error tells you, lineWrapping isn’t an option that exists here. The way you enable line wrapping in CodeMirror 6 is to include EditorView.lineWrapping in your set of extensions.