Topic: MDBReact5 Pro Table Editor "export __spreadArray not found in 'tslib'"

mac.wierda@dataworld.ai priority asked 2 years 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.)table-editor error screenTried installing tslib locally with a specific version but didn't have success.


Wojciech Staniszewski staff commented 2 years ago

Could you try to execute this command? npm install tslib@latest --save


mac.wierda@dataworld.ai priority commented 2 years ago

Looks like that fixed everything, thanks!



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: 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