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

prettier error #19

Open
matt-erhart opened this issue Apr 11, 2019 · 0 comments
Open

prettier error #19

matt-erhart opened this issue Apr 11, 2019 · 0 comments

Comments

@matt-erhart
Copy link

matt-erhart commented Apr 11, 2019

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)

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

1 participant