Topic: Module '"mdb-react-ui-kit"' has no exported member 'MDBAnimation'
Hy,
I will try the MDBAnimation component but it will not work like described in the documentation. I am in a TS project configure like in the docs. I am using the PRO-advanced 4.1 version from git.mdboostrap.com How can I fix it ? Thanks. Didier
Expected behavior No error
Actual behavior Compilation error : TS2305: Module '"mdb-react-ui-kit"' has no exported member 'MDBAnimation'.
Resources (screenshots, code snippets etc.)
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Open
- User: Free
- Premium support: No
- Technology: MDB React
- MDB Version: MDB5 4.1.0
- Device: MAC
- Browser: Chrome
- OS: Mac OSX 15
- Provided sample code: No
- Provided link: No
cariforef commented 2 years ago
I think the documentation for tsconfig and Typescript projects is not up to date. I remove the Declaration in the typings/mdb-react-ui-kit/index.d.ts and keep the export at the end and it works. In the doc, we have to create a index.d.ts and remove the export at the end. declaration module 'mdb-react-ui-kit'{ ... }
Wojciech Staniszewski staff commented 2 years ago
How did you install your package? Could you try to reinstall it first, and check if there is no problem with other pro components?
cariforef commented 2 years ago
I had a live in my package.json with the git like. Should we create a index.d.ts and remove the export at the end. declaration module 'mdb-react-ui-kit'{ ... }
Wojciech Staniszewski staff commented 2 years ago
We already fixed it, and will be available on Mondays release