Topic: package.json dependencies
Roman Mzh 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"
}
Wojciech Staniszewski staff 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.
Wojciech Staniszewski staff answered 3 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
.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- 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