Errors saving appointment when using "use strict"; mode

When using “use strict”; statement at the begining of my javascript file and when I try to save an appointment the lightbox does not dismiss and appointment is not saved and I get following console errors:

  1. “ReferenceError: assignment to undeclared variable schi” in file dojo_build.js
  2. “Error: Error e is undefined” in file dhtmlxScheduler.js.

Wanted to clarify:

The first error (“ReferenceError: assignment to undeclared variable schi” in file dojo_build.js ) shows up when opening lightbox.

The second error (“Error: e is undefined”) shows when trying to save appointment.