Errors like:
Caused by: org.mozilla.javascript.EvaluatorException: syntax error (file:/opt/alfresco/tomcat-share/webapps/share/WEB-INF/classes/alfresco/web-extension/site-webscripts/dk/redpill-linpro/alfresco/share/header/share-header.get.js#5)
at org.mozilla.javascript.DefaultErrorReporter.runtimeError(DefaultErrorReporter.java:109)
Can be caused by comments in js-controller file before <import> statements, EX:
-------------generating error--------
//overridden
<import resource="classpath:/alfresco/web-extension/site-webscripts/dk/redpill-linpro/alfresco/share/imports/share-header.lib.js">
...
-------------no error --------
<import resource="classpath:/alfresco/web-extension/site-webscripts/dk/redpill-linpro/alfresco/share/imports/share-header.lib.js">
//overridden
...
Silly but true
No comments:
Post a Comment