I added Bootstrap and routing to a frontend, deleted my node_modules, and re-installed them with yarn install. When I try to npm run build
, I get:
Creating an optimized production build...
Failed to compile.
./node_modules/react-bootstrap/esm/index.js
Attempted import error: 'AccordionCollapseProps' is not exported from './AccordionCollapse'.
I'd like to fix this error. I can post more extensive code if helpful.
There is an open issue in their github repo: https://github.com/react-bootstrap/react-bootstrap/issues/5267
One reported fix is to roll back to version 1.0.1.
npm install [email protected] --save
That worked for me.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments