zadam / trilium

Build your personal knowledge base with Trilium Notes
GNU Affero General Public License v3.0
27.2k stars 1.9k forks source link

Syntax error in #widget makes it impossible to load trilium #1874

Closed chee closed 3 years ago

chee commented 3 years ago

i'm writing a widget, and i accidentally refreshed while it was in an incomplete state:

Execution of JS note "sidebar notes" with ID U68Hug0IShQT failed with error: Unexpected token '{'

Now trilium can't load at all, and so I can't fix the broken note

using 0.46

zadam commented 3 years ago

Hi, set following environment variable which will exclude all custom scripts and widgets from startup:

TRILIUM_SAFE_MODE=true ./trilium

https://github.com/zadam/trilium/wiki/Troubleshooting#broken-script-prevents-application-startup

chee commented 3 years ago

Hi, set following environment variable which will exclude all custom scripts and widgets from startup:

TRILIUM_SAFE_MODE=true ./trilium

zadam/trilium/wiki/Troubleshooting#broken-script-prevents-application-startup

the error message should probably mention safe mode