React-ga: react 15.0.0 Object.assign is deprecations

Created on 8 Apr 2016  路  5Comments  路  Source: react-ga/react-ga

react 15.0.0
/~/react-ga/src/components/OutboundLink.js
Module not found: Error: Cannot resolve module 'react/lib/Object.assign' in

https://github.com/facebook/react/pull/6376

Most helpful comment

Anyone waiting on this to be fixed, you can resolve the issue temporarily by adding this to the resolve.alias section of your webpack config (if you're using webpack):

    resolve: {
        alias: {

            // temporary fix for missing require in `react-ga`
            // cf. https://github.com/react-ga/react-ga/issues/53
            'react/lib/Object.assign': 'object-assign',

        },
    },

All 5 comments

Is anyone working on this? I could submit a PR to change the dependency to use https://www.npmjs.com/package/object-assign, which is what React is using now.

Anyone waiting on this to be fixed, you can resolve the issue temporarily by adding this to the resolve.alias section of your webpack config (if you're using webpack):

    resolve: {
        alias: {

            // temporary fix for missing require in `react-ga`
            // cf. https://github.com/react-ga/react-ga/issues/53
            'react/lib/Object.assign': 'object-assign',

        },
    },

For the future, stop using internal modules

Was this page helpful?
0 / 5 - 0 ratings

Related issues

TomasVink picture TomasVink  路  3Comments

horaceleung picture horaceleung  路  6Comments

kenjoe picture kenjoe  路  4Comments

achhranitesh picture achhranitesh  路  3Comments

andrewmclagan picture andrewmclagan  路  3Comments