hello,i'm currently developing a Plugin for Jira,i have a JavaScript service file and i want to export some methods so other files files can use them.both files are declared as a resource in atlassian-plugin.xml
when i try to import them from my main JavaScript file and run the plugin i receive this error :
[INFO] Compiling javascript using YUI
[ERROR] syntax error
export function sayHello() {
[ERROR] syntax error
console.log("####################TEST Import######################################################################################");
[ERROR] syntax error
};
[ERROR] Compilation produced 3 syntax errors.
is it possible to import methods or do i have to write all my code in one file ?
Hello @Aymen Maamri ,
First of all, let me mention that this is not the best place to get support on development related topics and that I might not be the best person to answer this question. The right resources are listed in https://developer.atlassian.com/resources.
Specifically:
Also:
Are you doing this or anything different?Note: If you have multiple stylesheets and javascript resources defined, you should put the resource defintions in a Web Resource Module.
To refer to your plugin images in a stylesheet, use a relative path based on the resource name defined for the image (which is 'my-images' in this case).
Finally, similar topics have been discussed in below threads. Please review them since you might find your answer in there:
Cheers,
Dario
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.