As for the missing AJS.template
module, you can try loading the module manually:
AJS.template
is undefinedCannot read property “fill” of undefined You need to explicitly import this function now.
In the Node package:
- Add a dependency on @atlassian/aui-template to your
package.json
file.- This package uses the UMD pattern for its export. When treating it as a module, use its default export. If no module system is available, it exports to window.ajstemplate.
In the Atlassian plugin:
- Add a web-resource dependency on
com.atlassian.auiplugin:template
source: AUI 8 upgrade guides - AUI Documentation
To be completely honest I have never tried that approach but I hope this will work for you.
Thanks,
Maciej