Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I am unable to install this package on our live site as I get this error (title of post).
However, it installed OK locally and on our Dev and Staging servers!?
I have seen this post https://our.umbraco.com/packages/backoffice-extensions/newsletter-studio/comments/89712-strict-mode-code-may-not-include-a-with-statement-error-with-client-dependency-on - I tried removing the "strict" statement and I tried wrapping the code in a function but none of that worked.
Are you able to revise the files (or show me how to) like you did for your GodMode package?
Releasing a new version takes a fair bit of time, so quickest solution would be to go the /App_Plugins/DiploTraceLogViewer/backoffice/diplotracelog/ folder and locate the following JS files:
/App_Plugins/DiploTraceLogViewer/backoffice/diplotracelog/
Diplo.TraceLog.Controller.js Diplo.TraceLog.Detail.Controller.js Diplo.TraceLog.Resources.js
Then wrap them in a function like this:
(function () { .... })();
For an example, see how it is done in GodMode:
https://github.com/DanDiplo/Umbraco.GodMode/blob/master/Umbraco.Web/App_Plugins/DiploGodMode/BackOffice/Scripts/GodMode.ContentBrowser.Controller.js
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Strict mode code may not include a with statement
I am unable to install this package on our live site as I get this error (title of post).
However, it installed OK locally and on our Dev and Staging servers!?
I have seen this post https://our.umbraco.com/packages/backoffice-extensions/newsletter-studio/comments/89712-strict-mode-code-may-not-include-a-with-statement-error-with-client-dependency-on - I tried removing the "strict" statement and I tried wrapping the code in a function but none of that worked.
Are you able to revise the files (or show me how to) like you did for your GodMode package?
Releasing a new version takes a fair bit of time, so quickest solution would be to go the
/App_Plugins/DiploTraceLogViewer/backoffice/diplotracelog/
folder and locate the following JS files:Then wrap them in a function like this:
For an example, see how it is done in GodMode:
https://github.com/DanDiplo/Umbraco.GodMode/blob/master/Umbraco.Web/App_Plugins/DiploGodMode/BackOffice/Scripts/GodMode.ContentBrowser.Controller.js
is working on a reply...