I have an external JS file that contains the logic to be triggered when a button is clicked. I want to invoke a function which is present in my external JS file.
I tried to import the file using import "..." statement. But it was throwing the following error to me:
Cannot find name 'compareURLfunction'.
To fix this, I tries to include the js file in my xml file under <resources>
<resources>
<code path="index.ts" order="1"/>
<css path="css/detailsButton.css" order="1"/>
<js path="DomainNameExtraction.js" order="1"/>
</resources>
This was also throwing the following error:
Manifest validation error: instance.manifest.control[0].resources[0] additionalProperty "js" exists in instance when not allowed