-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
[BUG] TypeError: Cannot read properties of undefined (reading 'editor') #503
Comments
Same issue here, upon launch of Obsidian app, causes delays with "launching..." screen while the following is displayed to console repeatedly. Have been running the plugin without issue for 1-2 years. OS: MacOS app.js:1 TypeError: Cannot read properties of undefined (reading 'editor') |
export function getEditorFromState(state: EditorState) {
const markdownFileInfo = state.field(editorInfoField);
try {
if (!markdownFileInfo.editor) {
return null;
}
return new MyEditor(markdownFileInfo.editor);
} catch {
return null;
}
} It probably doesn't fix the issue, but you can hide the message by wrapping the function with a try-catch block. |
Same issue here, are there any news ? Thanks. |
Describe the bug To Reproduce Download Outliner I expected it to work normally without it giving any errors. Screenshots Environment (please complete the following information): OS: Microsoft |
Where do you put that? I just put it as javascript and it works:
Out of sight, out of mind. |
Describe the bug
After starting Obsidian, the following error message appears in the developer console:
To Reproduce
Steps to reproduce the behavior:
Just starting Obsidian is enough. The current page doesn't even need to include an outline.
Expected behavior
There should be no error messages in the console.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
I would investigate and try to provide a PR, but currently I'm not sure whether this plugin is still maintained given that no updates have appeared since months though many bug reports have been accumulated.
The text was updated successfully, but these errors were encountered: