React-popper: Unexpected token export

Created on 28 Feb 2018  路  7Comments  路  Source: popperjs/react-popper

As part of reactstrap, we are facing this error, when running jest tests. Any help will be appreciated.

 /Users/venelin/projects/stylbum-web-v2/node_modules/react-popper/lib/react-popper.js:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,global,jest){export { default as Manager } from './Manager';
                                                                                             ^^^^^^

    SyntaxError: Unexpected token export

      at ScriptTransformer._transformAndBuildScript (node_modules/jest-runtime/build/ScriptTransformer.js:289:17)
      at Object.<anonymous> (node_modules/reactstrap/dist/reactstrap.cjs.js:14:19)
      at Object.<anonymous> (src/Auth/Login/Login.jsx:5:19)

https://github.com/reactstrap/reactstrap/issues/872

Most helpful comment

@nickmccurdy Use reactstrap": "5.0.0-beta" version for a short.

All 7 comments

same here

I just got this when installing [email protected]. I'd appreciate it if anyone knows a workaround, this is blocking me from porting a site to Bootstrap 4.

@nickmccurdy Use reactstrap": "5.0.0-beta" version for a short.

@sinxwal I can confirm 5.0.0-beta works for me, thanks!

Hi, maybe related to #93

Thank you @nickmccurdy, that version really works and save me a lot of time

This should be fixed in 0.8.3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

craigsketchley picture craigsketchley  路  3Comments

mogusbi picture mogusbi  路  5Comments

vincerubinetti picture vincerubinetti  路  3Comments

rolandjitsu picture rolandjitsu  路  5Comments

souporserious picture souporserious  路  5Comments