Skip to content

Style Settings crashes with “not iterable” error on valid-looking ITS config #200

@MyaStengel

Description

@MyaStengel

Environment:

Obsidian: v1.9.12

Style Settings plugin: v1.0.9

Theme: ITS

Custom style-settings.json based on ITS@@ variables

Issue:
After importing a manually written style-settings.json into a fresh vault (no CSS snippets), the plugin throws repeated runtime errors:

plugin:obsidian-style-settings:54 Uncaught (in promise) TypeError: St(...) is not iterable (cannot read property undefined)
at gl (plugin:obsidian-style-settings:54:13638)
at Jt.setCSSVariables (plugin:obsidian-style-settings:54:15480)
at Jt.save (plugin:obsidian-style-settings:54:14626)

This is triggered when the plugin tries to read a custom config file made up entirely of flat ITS key/value pairs (e.g. "ITS@@accent@@light": "#6ECAD7"), like many existing ITS-based themes.

obsidian.md-1756528315754.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions