Topic: package.json dependencies

Roman Mzh priority asked 2 years ago


Could you please clarify why do we need some of dependencies and how to get rid of them? I don't actually need datatables and chart.js

"dependencies": { "clsx": "1.1.1", "react-popper": "2.2.4", "@popperjs/core": "2.6.0", "react-perfect-scrollbar": "1.5.8", "chart.js": "^3.1.1", "chartjs-plugin-datalabels": "^1.0.0", "deepmerge": "^4.2.2" }

enter image description here

These dependencies are needed for the MDBChart component to function properly. You could delete them only locally from your project as shown above.

Roman Mzh priority answered 2 years ago

You could delete the node_modules folder and then modify package.json - delete unnecessary dependencies. In that case, it should look like this:

"dependencies":  { 
    "clsx": "1.1.1", 
    "react-popper": "2.2.4", 
    "@popperjs/core": "2.6.0", 
    "react-perfect-scrollbar": "1.5.8", 
    "deepmerge": "^4.2.2" 

Then reinstall the dependencies by typing npm install.

Please insert min. 20 characters.


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



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 1.0.0-beta6
  • Device: pc
  • Browser: chrome
  • OS: ubuntu
  • Provided sample code: Yes
  • Provided link: No