Skip to content

Uncaught TypeError: $export is not a function #358

@Nickman87

Description

@Nickman87

I've just updated to the latest react-storybook 2.1.1 and with our old configuration I'm now getting the following error:

Uncaught TypeError: $export is not a function @ es6.object.define-property.js?6967:2

which relates to this piece of code

var $export = require('./_export');
// 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
$export($export.S + $export.F * !require('./_descriptors'), 'Object', {defineProperty: require('./_object-dp').f});


/** WEBPACK FOOTER **
 ** node_modules/core-js/library/modules/es6.object.define-property.js
 **/

By adding exclude: /node_modules/, to the webpack config, the error goes away and everything seems to work fine.

Is there a reason you do not exclude the node modules, or do you need more information to debug this?
We have a custom css setup in an extra webpack.config file, not sure if this has any impact on the javascript compilation?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions