I'm attempting to move my React JS App over to AWS S3. The App works perfectly in the dev environment but when built and moved to S3, It's throwing the error: "Super expression must either be null or a function." The deployment to S3 seems to work as I can move over the Try-React app and it runs without any issues. Any thoughts would be appreciated!
function b(e, t, n) {
return t in e ? Object.defineProperty(e, t, {
value: n,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[t] = n, e;
}
var w = [a.a.string, a.a.number, a.a.array, a.a.object],
S = [a.a.string, a.a.array],
T = [a.a.object, a.a.bool],
O = [a.a.string, a.a.bool],
_ = function (e) {
!function (e, t) {
if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
e.prototype = Object.create(t && t.prototype, {
constructor: {
value: e,
writable: !0,
configurable: !0
}
}), t && g(e, t);
}(n, e);
var t = y(n);