Crash switching from custom theme development to installed theme

Bug report

I was developing a new theme in developer mode. I stopped work. I tried to switch back to another theme in Preferences -> Themes but clicking on this crashes the Preferences dialog without being able to display the Themes panel.

Here is the stack trace

TypeError: Cannot read property 'metadata' of undefined
    at d.getCurrentThemeName (file:///Applications/
    at d.render (file:///Applications/
    at vi (/Applications/
    at ui (/Applications/
    at gk (/Applications/
    at fk (/Applications/
    at Zj (/Applications/
    at Lj (/Applications/
    at /Applications/
    at exports.unstable_runWithPriority (/Applications/
    at fg (/Applications/
    at ig (/Applications/
    at jg (/Applications/
    at fb (/Applications/
    at Nd (/Applications/
    at HTMLDocument.__trace__ (/Applications/


  • Platform: (macOS)
  • Platform version: (Mojave/10.14.6)
  • App Version: (4.6.1)


Follow the instructions to start custom theme development. Make changes to your theme, reload Inkdrop, and observe that your changes are taking effect. Then try to switch back to an existing loaded theme at Preferences -> Themes.

Also, if it was not clear from the bug report, I can’t switch themes until this is resolved. Right now Inkdrop Editor view is displaying black text on white background with no syntax highlighting.

Hi Mark,

Thank you for reporting it.
Great to hear that you are making a theme!

The error could happen when the current theme could not be found.
So, I guess you changed your theme name?

You have to reset the theme settings in config.cson in the user data directory.
For example, you should have a config file like so:

    devMode: true
    themes: [

And you can remove *.core.themes and relaunch the app. Or, you can change it manually.

1 Like

That worked to fix it. Thanks! You can close this ticket.

1 Like