Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: MBDAnimation not found in import

jenniferr priority asked 2 years ago


Expected behavior

Use MBDAnimation in React Component

Actual behavior Receive error: ERROR in ./src/App.js 15:37-49 export 'MDBAnimation' (imported as 'MDBAnimation') was not found in 'mdb-react-ui-kit' enter image description here

Resources (screenshots, code snippets etc.) Version: enter image description here


jenniferr priority answered 2 years ago


I have done all as suggested and am still receiving the same error.


Wojciech Staniszewski staff commented 2 years ago

If it did not work, we will take a look at this problem again. Sorry for the inconvenience.


Krzysztof Wilk staff answered 2 years ago


Hi!

We fixed that problem in the 4.2.0 version. I think some old stuff causes it in your node_modules catalog or the package-lock.json/yarn.lock contains old dependencies. The third possibility is it is installed from the cache. The steps below should fix the problem:

  1. Remove node_modules catalog and package-lock.json/yarn.lock file
  2. Run npm cache clean --force or yarn cache clean command
  3. Install your dependencies once again

Hope it will help :)



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 4.2.0
  • Device: Macbook Pro
  • Browser: Chrome
  • OS: macOS Monterey 12.5.1
  • Provided sample code: No
  • Provided link: No