The problem I have is that the script on the 'webix-angularjs.js' file complains because 'webix' is not defined. Webix is defined in the file before 'webix.js'.
I can see that these files are concatenated by Umbraco in a custom file called 'umbraco-backoffice-extensions-js.js'.
If I inspect that file, I can see that the content of webix.js is not there, but it includes the rest of my js: webix-angularjs.js, dashboard.controller.js and dashboard.services.js
If I type 'webix' on the Dev console I can in fact see that webix is not defined.
For some reason, the file is not being loaded by Umbraco.
Hi. I am not sure if this is the fix but I got a similar issue when working with UmbracoForms. (Error: $controller:ctrlreg") I fixed this on the server by deleting the "/Smidge"-folder. It contained old cache-files that did not include the new added plugin. After deleting that folder and after a page reload, Umbraco generated new cache-files, containing the new plugin. And now UmbracoForms works great!
Script not included in umbraco-backoffice-extensions-js
I am trying to use a js library into a new dashboard. This is how I'm including the files:
The problem I have is that the script on the 'webix-angularjs.js' file complains because 'webix' is not defined. Webix is defined in the file before 'webix.js'.
I can see that these files are concatenated by Umbraco in a custom file called 'umbraco-backoffice-extensions-js.js'.
If I inspect that file, I can see that the content of webix.js is not there, but it includes the rest of my js: webix-angularjs.js, dashboard.controller.js and dashboard.services.js
If I type 'webix' on the Dev console I can in fact see that webix is not defined.
For some reason, the file is not being loaded by Umbraco.
EDIT
The content of webix-angularjs.js is here
The content of webix.js is here
Hi!
Have you found a solution to this issue?
We have the same problem on our server when trying to get Contentment to work. If I change
Debug
totrue
in the server appsettings-file it works:But we want to keep it as
Debug=false
in that environment.The file
/sb/umbraco-backoffice-extensions-js.js.vc4856266498544f87708fd9d70704dc3b759536d
does not contain any referense to Contentment.In our development environment (where it works) it looks like this in
umbraco-backoffice-extensions-js
when i changeDebug
tofalse
:I was hoping to find an answer to this issue, I hope you can help me.
Hi Viktor,
There's an issue open on Github about this: https://github.com/umbraco/Umbraco-CMS/issues/10372
It looks like it hasn't been fixed yet.
Still nothing in terms of a fix yet unfortunately.
Thank you! I will place a comment on that issue.
Hey,
looks like after minimalizing JS angular cant resolve dependencies.
try to change:
to
Hi. I am not sure if this is the fix but I got a similar issue when working with UmbracoForms. (Error: $controller:ctrlreg") I fixed this on the server by deleting the "/Smidge"-folder. It contained old cache-files that did not include the new added plugin. After deleting that folder and after a page reload, Umbraco generated new cache-files, containing the new plugin. And now UmbracoForms works great!
thanks for your solution it worked for me too.
is working on a reply...