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
In importing usfm-editor into a react app, there is a node path error. Am I missing something?
Imported is as follows in react project at 'C:/projects/react-app/':
function Editor() {
const usfmString = `\\c 1
\\v 1 This is the first verse.`;
const setUsfmString = (editedUsfm) => {console.log(editedUsfm)};
return (
<UsfmEditor usfmString={usfmString} onChange={setUsfmString}></UsfmEditor>
);
}
export default Editor;
Initial part of error message:
point
C:/projects/src/interfaces/editor.ts:903
900 | const node = Node.get(editor, path)
901 |
902 | if (!Text.isText(node)) {
> 903 | throw new Error(
| ^ 904 | `Cannot get the ${edge} point in the node at path [${at}] because it has no ${edge} text node.`
905 | )
906 | }
In importing usfm-editor into a react app, there is a node path error. Am I missing something?
Imported is as follows in react project at 'C:/projects/react-app/':
Initial part of error message: