Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I am trying to duplicate an existing extension and then modify it slightly.
In the Dev Hub I duplicate the extension and rename it. When I test the duplicated extension without making any modifications I get a message -
"Invalid Visualization. The visualization was not found on the server. This extension is not available: SelectionTest1 ({1})"
Since I am duplicating an existing extension I am not sure what the issue is.
Any ideas on what I am missing would be greatly appreciated.
This is my first time trying to modify and extension. My update works in the original extension when I test it, but I do not want to change that original extension.
Thanks,
Brian
So, there is a problem with properties.js. Does it exist? Is there any syntax error in it? Does it have any dependencies?
Check the array of dependencies in the extension. Also check for syntax errors, like missing curly braces or extra curly braces.
the original dependency was-
define(['jquery', 'qlik', 'css!./FEI-SelectionsApplier.css', './properties'],
I updated that to the new name-
define(['jquery', 'qlik', 'css!./SelAPCust.css', './properties'],
I believe that is correct.
also I went through the code to check the syntax and it matched the original code (which works).
Thank you for your help. If you have any other thoughts please reply.
Do you get any errors in the browser console? Like 404 not found etc.
Yes. Thanks. I didn't even think to look there!
Failed to load resource: the server responded with a status of 404 (Not Found)
/resources/chunks/setup-view.aaafe511db98d706b7b3.js:8 Error: Script error for "extensions/SelAPCust/properties", needed by: extensions/SelAPCust/SelAPCust
http://requirejs.org/docs/errors.html#scripterror
at makeError (/resources/chunks/setup-view.aaafe511db98d706b7b3.js:8)
at HTMLScriptElement.onScriptError (/resources/chunks/setup-view.aaafe511db98d706b7b3.js:8)
I don't know what it means or why I would get the error with the same code.
So, there is a problem with properties.js. Does it exist? Is there any syntax error in it? Does it have any dependencies?
Thanks Erik,
I got it to work.
I created the properties.js file in the Dev-Hub extension editor in the duplicated extension and it worked.
I am not sure why that file was not duplicated from the original extension, but now I know how to fix the issue in the future. Thanks again for the help !
Brian
I think dev-hub only copies the files listed in wbfolder.wbl file, so if properties.js is not in that file it would not be copied.