Hi, Gusy.
It works fine on my localhost, but when I register the plugin on my test server, I get the following console error.
I have already checked this link.
https://developer.atlassian.com/server/jira/platform/web-resource/
atlassian-plugin.xml
<web-resource key="temp-test" name="temp-test">
<dependency>com.atlassian.plugins.atlassian-plugins-webresource-plugin:i18n</dependency>
<dependency>com.atlassian.auiplugin:ajs</dependency>
<dependency>com.atlassian.auiplugin:aui-flag</dependency>
<dependency>com.atlassian.auiplugin:aui-select</dependency>
<dependency>com.atlassian.auiplugin:aui-select2</dependency>
<dependency>com.atlassian.auiplugin:aui-table-sortable</dependency>
<dependency>com.atlassian.auiplugin:aui-navigation</dependency>
<transformation extension="js">
<transformer key="jsI18n"/>
</transformation>
<resource type="download" name="temp-test.css" location="/css/temp-test.css"/>
<resource type="download" name="temp-test.js" location="/js/temp-test.js"/>
<resource type="download" name="images/" location="/images"/>
<resource type="download" name="api.js" location="/js/api.js"/>
<resource type="download" name="api-path.js" location="/js/api-path.js"/>
<resource type="download" name="common.js" location="/js/utils/common.js"/>
<context>atl.admin</context>
<context>temp</context>
test.vm
<html>
<head>
<title>$i18n.getText("testtemp.menu.admin.section")</title>
<meta charset="UTF-8">
<meta name="decorator" content="temp">
<meta name="decorator" content="atl.admin">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="X-UA-Compatible" content="IE=EDGE">
## $webResourceManager.requireResourcesForContext("temp")
<script type="text/javascript">
Api.call(~~~)
help…
Why does it work locally but not when I register the plugin?