Topic: MDBReact5 Pro Table Editor "export __spreadArray not found in 'tslib'"
email@example.com priority asked 10 months ago
*_Expected behavior_*After installing mdb-react-table-editor I can use the MDBTableEditor component in my React project without error.Using the example MDBTableEditor code found here: https://mdbootstrap.com/docs/b5/react/plugins/table-editor/. Should also be able to add new rows.
*_Actual behavior_*Receive a runtime error where the 'spreadArray' export from 'tslib' is not able to be found (provides a list of exports, one of which is 'spreadArrays' plural, but not singular). Can close the error screen and use most of the component, but I am unable to add a new row.
Resources (screenshots, code snippets etc.)Tried installing tslib locally with a specific version but didn't have success.
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
- User: Priority
- Premium support: Yes
- Technology: MDB React
- MDB Version: MDB5 3.0.0
- Device: Laptop
- Browser: Chrome
- OS: Windows
- Provided sample code: No
- Provided link: Yes
Wojciech Staniszewski staff commented 10 months ago
Could you try to execute this command?
npm install tslib@latest --save
firstname.lastname@example.org priority commented 10 months ago
Looks like that fixed everything, thanks!