React js - Unhandled Rejection (TypeError): t._innerWindow(...).widgetReady is not a function

2.1k views Asked by At
 this._innerWindowLoaded.then(function () {
      t._innerWindow().widgetReady(function () {
        t._ready = !0;
        for (var e = 0, o = t._readyHandlers; e < o.length; e++) {
          var n = o[e];
          try {
            n.call(t);
          } catch (t) {
            console.error(t);
          }
        }
        t._innerWindow().initializationFinished();
      });
    });
  }),

The code is of charting_library.min.js which you can find easily in the github. I am running through this error. Actually I am connecting trading API from finnhub.io .

So needed some help in this issue as soon as possible

Thanks .

1

There are 1 answers

4
Sohaib On

If you are getting this error in Production then instead of running the command serve -s build just run server build without -s parameter.