I know this is an extremely basic part of building plugins but recently I've been running into issues where when I try to run certain scripts, I get the following error:
Error: Missing export named "default". Your command should contain something like `export function " + key +"() {}`.
In my manifest.json, I have the following code:
{
...
"script": "./settings.cocoascript",
"handlers": {
"run": "onRun"
},
...
}
And in my settings.cocoascript file I have:
export function onRun(context) { ... }
I've also tried removing export
and a couple other combos including other ES6 notation. Any thoughts?