Open
Description
E:\lab\node_modules\…parser-babylon.js:1 Uncaught (in promise) SyntaxError: Unexpected token (1:21)
> 1 | <value redos={List []} undos={List [ List [ Operation { length: undefined, mark: undefined, marks: undefined, newPath: undefined, node: undefined, offset: undefined, path: undefined, position: undefined, properties: [object Object], selection: Selection { anchor: Point { key: null, offset: 0, path: List [ 0, 0 ] }, focus: Point { key: null, offset: 0, path: List [ 0, 0 ] }, isFocused: false, marks: null }, target: undefined, text: undefined, type: "set_selection", value: Value { data: Map {}, decorations: List [], document: Document { data: Map {}, key: "30", nodes: List [ Block { data: Map {}, key: "31", nodes: List [ Text { leaves: List [ Leaf { marks: Set {}, text: "some text" } ], key: "32" } ], type: "line" } ] }, selection: Selection { anchor: Point { key: "32", offset: 0, path: List [ 0, 0 ] }, focus: Point { key: "32", offset: 0, path: List [ 0, 0 ] }, isFocused: false, marks: null } }, data: Map {} } ] ]}>
| ^
2 | <document>
3 | <line>
4 | some text
at t (E:\lab\node_modules\…parser-babylon.js:1)
at Object.d [as parse] (E:\lab\node_modules\…parser-babylon.js:1)
at Object.parse$2 [as parse] (E:\lab\node_modules\…\standalone.js:7310)
at coreFormat (E:\lab\node_modules\…standalone.js:10517)
at format (E:\lab\node_modules\…standalone.js:10690)
at formatWithCursor (E:\lab\node_modules\…standalone.js:10702)
at E:\lab\node_modules\…standalone.js:19333
at Object.format (E:\lab\node_modules\…standalone.js:19341)
at Object.hyperprint [as default] (E:\lab\node_modules\…nt\dist\index.js:46)
at DocEditor.render (DocEditor.tsx:181)
Work ok in component did mount. Any other place in the component e.g. render() will throw this error (before I've done any edits)
Metadata
Metadata
Assignees
Labels
No labels