You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working with a YamlEditor component within a NextJS project running in development mode, any time I delete all text from the editor window, an error is thrown:
Error: merge function should return object with "text" or "json" fields
Call Stack
getMergedValue
node_modules/@focus-reactive/react-yaml/dist/YamlEditor.js (94:0)
eval
node_modules/@focus-reactive/react-yaml/dist/YamlEditor.js (131:0)
updateMemo
node_modules/react-dom/cjs/react-dom.development.js (17246:0)
Object.useMemo
node_modules/react-dom/cjs/react-dom.development.js (17886:0)
Object.useMemo
node_modules/react/cjs/react.development.js (1650:0)
YamlEditor
node_modules/@focus-reactive/react-yaml/dist/YamlEditor.js (130:0)
The text was updated successfully, but these errors were encountered:
Looks like the bug was introduced in v1.1.0. I will use 1.0.0 for now. I'm just going to make my own thing with CodeMirror, this component is not functional.
While working with a YamlEditor component within a NextJS project running in development mode, any time I delete all text from the editor window, an error is thrown:
The text was updated successfully, but these errors were encountered: