Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Uncaught TypeError: Set is not a constructor

    I am getting a conflict between SmartClient and a third party javascript library.

    Uncaught TypeError: Set is not a constructor
    at eval (debounce.js:141)
    at Module.../../../node_modules/@polymer/polymer/lib/utils/debounce.js

    I presume it is due to ISC_Core.js
    // A container that stores unique values. // Note: This Set type does not have the same semantics as the proposed Set type of Harmony // (ECMAScript 6). In particular, two Date objects are treated as the same if they represent // the same time. isc.defineClass("Set").addClassProperties({ _nextUniqueSetNumber: 1, _dateCompareFn : function (t1, d2) { return (t1 - d2.getTime()); } }); isc.Set.addProperties({ ...
    });

    Is there any way to workaround this?

    #2
    See docs - use “portal mode” and no globals will be overwritten by SmartClient.

    Comment


      #3
      Thank you. I had forgotten about that option. It worked.

      Comment

      Working...
      X