Skip to content

Uncaught TypeError: object is not a function #54

Closed
@ronag

Description

@ronag

When running with react-hot-loader I'm getting:

Uncaught TypeError: object is not a function

At the last line of the following:

/* WEBPACK VAR INJECTION */(function(module) {/* REACT HOT LOADER */ if (true) { (function () { var ReactHotAPI = __webpack_require__(9),     RootInstanceProvider = __webpack_require__(4);  if (typeof ReactHotAPI === "function" && typeof RootInstanceProvider === "object") { module.makeHot = module.hot.data ? module.hot.data.makeHot : ReactHotAPI(RootInstanceProvider.getRootInstances); } })(); }

module.exports = function(module) {
    if(!module.webpackPolyfill) {
        module.deprecate = function() {};
        module.paths = [];
        // module.parent = undefined by default
        module.children = [];
        module.webpackPolyfill = 1;
    }
    return module;
}


/* REACT HOT LOADER */ if (true) { (function () { module.hot.accept(function (err) { if (err) { console.error("Cannot not apply hot update to " + "module.js" + ": " + err.message); } }); module.hot.dispose(function (data) {   data.makeHot = module.makeHot; }); if (module.exports && module.makeHot) { var freshModuleExports = module.exports; module.exports = module.makeHot(module.exports, "__MODULE_EXPORTS"); for (var key in module.exports) { if (freshModuleExports[key] && freshModuleExports.hasOwnProperty(key)) { module.exports[key] = module.makeHot(freshModuleExports[key], "__MODULE_EXPORTS_" + key); } } } })(); }
/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(6)(module)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions