So I delete the last ";" in the end of code, then try again,
shows error:
TypeError: def is not a constructor
at CustomJS.eval (plugin:customjs:6297:29)
If I run this script by QuickAdd, shows error:
QuickAdd: (ERROR) failed to run user script TestQuickAdd. Error:
Cannot read properties of undefined (reading 'api')
I am following the tutorial : https://quickadd.obsidian.guide/docs/Choices/MacroChoice
shows error: ParseError: Unexpected token
So I delete the last ";" in the end of code, then try again,
shows error: TypeError: def is not a constructor at CustomJS.eval (plugin:customjs:6297:29)
If I run this script by QuickAdd, shows error: QuickAdd: (ERROR) failed to run user script TestQuickAdd. Error: Cannot read properties of undefined (reading 'api')