David Lyons

Results 4 comments of David Lyons

I'm using a few Reactstrap components inside of a few larger section components and transpiling those to CommonJS with either Typescript or Babel, which converts `import` to `require`, so I...

Steps to reproduce: ``` npx create-react-app cra-reactstrap-require cd cra-reactstrap-require npm i reactstrap bootstrap npm start ``` add to App.js: ``` const reactstrap = require('reactstrap'); console.log(reactstrap); // string console.log(reactstrap.Button); // undefined...

@Elie-asmar While this doesn't address the root issue, I found a hopefully temporary workaround in the meantime using react-app-alias to point reactstrap to reactstrap.modern.js instead of reactstrap.cjs https://github.com/oklas/react-app-alias#usage jsconfig.paths.json: ```json...

This is no longer an issue with one of the latest versions of reactstrap. Tested with reactstrap 9.2.0. Thanks!