#Can hyphens be used in property names under plugins in tauri.config.json?

3 messages · Page 1 of 1 (latest)

fresh cipher
#

I'm trying to configure my custom plugin named safe-area in tauri.config.json.

Here’s what I did:

{
  "plugins": {
    "safe-area": {
      "value": "by config"
    }
  }
}

However, when I run npm run tauri ios dev, the app crashes on startup.

The official documentation uses the term plugin-name, so I assumed that hyphenated names would work.

Is using hyphens (-) in plugin keys inside tauri.config.json supported?
Or should we always use camelCase or some other convention regardless of the plugin’s actual name?

Thanks in advance!

wind sentinel
#

hyphens should work. we use the same for the deep-link config for example.

fresh cipher
#

@wind sentinel
Thank you for your reply!

I see — that means the issue is likely coming from somewhere else.

I tried creating a plugin that doesn't use hyphens in the name, and the same problem occurred.
I'll take a closer look and try to trace the cause, maybe using the deep-link plugin as a reference.

Thanks again for the help!