package.json dependencies


Topic: package.json dependencies

Roman Mzh pro premium priority asked 3 years ago

Hey.

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


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.


Roman Mzh pro premium priority answered 3 years ago

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


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
  • User: Pro
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 1.0.0-beta6
  • Device: pc
  • Browser: chrome
  • OS: ubuntu
  • Provided sample code: No
  • Provided link: No
Tags