design-sparx / antd-multipurpose-dashboard

A free, open source, Vite, Typescript admin theme created using Ant Design 5
https://antd-multipurpose-dashboard.netlify.app/
MIT License
88 stars 23 forks source link

dependency error #74

Closed gjury closed 9 months ago

gjury commented 9 months ago

It seems that @ant-design/charts is not compatible with antd 5 unless I am missing something. Any advice to make your template run would be very appreciated. Thanks!

kelvink96 commented 9 months ago

Kindly share your error log/message @gjury

gjury commented 9 months ago

Thanks so much for your reply. Here is the log:

image

This is the relevant part of the debug-0.log file:

46 http fetch GET 200 https://registry.npmjs.org/react-dom 88ms (cache revalidated) 47 timing idealTree Completed in 5474ms 48 timing command:install Completed in 5481ms 49 verbose stack Error: unable to resolve dependency tree 49 verbose stack at #failPeerConflict (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1376:25) 49 verbose stack at #loadPeerSet (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1342:33) 49 verbose stack at async #buildDepStep (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:917:11) 49 verbose stack at async Arborist.buildIdealTree (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:196:7) 49 verbose stack at async Promise.all (index 1) 49 verbose stack at async Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:159:5) 49 verbose stack at async Install.exec (/usr/local/lib/node_modules/npm/lib/commands/install.js:147:5) 49 verbose stack at async module.exports (/usr/local/lib/node_modules/npm/lib/cli.js:89:5)

kelvink96 commented 9 months ago

Try the following command npm install --force instead of npm install and tell me how it goes @gjury

gjury commented 9 months ago

Thanks Kelvin for putting this together, seems to be an awesome dashboard, I'll be taking a deeper look into it. I confirm that both commands will do the install npm install --force npm install --legacy-peer-deps