Raghib Islam
Raghib Islam

Reputation: 21

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

 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 .

Upvotes: 2

Views: 2284

Answers (1)

Sohaib
Sohaib

Reputation: 793

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

Upvotes: 1

Related Questions