score:1

Accepted answer
    import proptypes from 'prop-types';
           ^^^^^^^^^

    syntaxerror: unexpected identifier

this is likely an issue related to your jest/babel config because the modules aren't getting compiled correctly. you'd need to remove anywhere you set the babel option modules to false.

related: https://github.com/facebook/react/issues/14399


Related Query

More Query from same tag