Topic: package.json dependencies
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
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
Hello.
Actually I meant your package.json
file, not my :)
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.
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- 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