creativetimofficial / ct-argon-dashboard-pro-svelte

8 stars 7 forks source link

[Bug] npm install has broken dependencies #5

Open stoatmagoats opened 3 years ago

stoatmagoats commented 3 years ago

Version

1.0.0

Reproduction link

N/A, just do npm install and you'll see the errors

Operating System

Mac OS X Big Sur

Device

MacBook Pro

Browser & Version

FireFox 85.0.1

Steps to reproduce

  1. Download zip file from CreativeTim website
  2. cd into the directory
  3. npm install

    What is expected?

    npm install should install all npm packages successfully

    What is actually happening?

    Getting dependency resolution errors that I don't know how to solve


Solution

Additional comments

There's just a lot of outdated packages in the package.json. Please update the template to work with newer versions of packages. If not possible, please provide a refund as this template is completely unusable right now.

danekolsen commented 3 years ago

I'm also on MacOS Big Sur and having the same issues. Looks like Yup is the main culprit.

UPDATE: I was able to resolve this issue by updating Node to the latest version: 14.16.0. After the update I ran npm install and then npm run start and it's running properly.

MarceloEmmerich commented 3 years ago

Node 15..12.0 on Arch Linux, same problem. npm install yields:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: argon-dashboard-pro-svelte@1.0.0
npm ERR! Found: yup@0.29.3
npm ERR! node_modules/yup
npm ERR!   yup@"^0.29.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer yup@"~0.28.2" from sveltejs-forms@2.1.2
npm ERR! node_modules/sveltejs-forms
npm ERR!   sveltejs-forms@"^2.0.1" from the root project
MarceloEmmerich commented 3 years ago

hello?? is anyone even reading this? Initial comment is from Feb. 12th. I purchased this theme to get going like TODAY, not in 2 months. Please respond asap.

dragosct commented 3 years ago

Hi! Thanks for using our products and sorry for the late response. Please try to use the following package.json:

"devDependencies": {
        "@rollup/plugin-commonjs": "11.0.2",
        "@rollup/plugin-node-resolve": "7.0.0",
        "node-sass": "4.14.1",
        "rollup": "1.20.0",
        "rollup-plugin-livereload": "1.0.0",
        "rollup-plugin-svelte": "6.1.1",
        "rollup-plugin-terser": "5.1.2",
        "svelte": "3.32.3",
        "svelte-preprocess": "3.7.4"
    },
    "dependencies": {
        "@beyonk/svelte-googlemaps": "2.2.0",
        "@fullcalendar/core": "4.4.2",
        "@fullcalendar/daygrid": "4.4.2",
        "@fullcalendar/interaction": "4.4.2",
        "@fullcalendar/timegrid": "4.4.2",
        "bootstrap": "4.3.1",
        "datatables.net": "1.10.20",
        "datatables.net-dt": "1.10.20",
        "date-fns": "2.14.0",
        "fusioncharts": "3.15.1-sr.1",
        "fusionmaps": "3.15.1",
        "google-maps": "4.2.3",
        "jquery": "3.4.1",
        "page.js": "4.13.3",
        "sirv-cli": "0.4.4",
        "style-loader": "1.2.1",
        "svelte-calendar": "1.5.0",
        "svelte-flatpickr": "2.4.0",
        "svelte-fullcalendar": "0.2.1",
        "svelte-fusioncharts": "1.0.0",
        "svelte-fuzzy": "0.3.0",
        "svelte-google-maps": "0.2.0",
        "svelte-notifications": "0.9.9",
        "svelte-quill": "1.2.0",
        "svelte-router-spa": "5.6.0",
        "svelte-table": "0.1.8",
        "svelte-tags-input": "2.3.1",
        "svelte-tooltip": "1.2.0",
        "sveltefileuploadcomponent": "0.1.0",
        "sveltejs-forms": "2.0.1",
        "sweetalert2": "9.13.1",
        "topojson": "3.0.2",
        "yup": "0.29.0"
    }

Regards, Dragos

MarceloEmmerich commented 3 years ago

nope:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: argon-dashboard-pro-svelte@1.0.0
npm ERR! Found: svelte@3.32.3
npm ERR! node_modules/svelte
npm ERR!   dev svelte@"3.32.3" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer svelte@"~3.20.0" from sveltejs-forms@2.0.1
npm ERR! node_modules/sveltejs-forms
npm ERR!   sveltejs-forms@"2.0.1" from the root project
MarceloEmmerich commented 3 years ago

actually this is more broken than I thought. After fixing the dependencies it turns out that the references inside the code do not work due to problems with upper/lowe case mismatch in references and files. Totally not working.

MarceloEmmerich commented 3 years ago

I managed to get it working doing the following:

einazare commented 3 years ago

Hello guys,

Sorry for this late reply. The product was made by a third party that decided to not offer support, so Creative Tim just took the support for it. To solve the issues you are having @MarceloEmmerich, please download and install NodeJS LTS version, none of our products work with NodeJS (current) version due to our dependencies. We'll add this warning inside our live docs here in a few days when we'll release a new version of this product with updated dependencies as well.

Best, Manu

sonbyungjun commented 3 years ago

I had the same problem.

I hope you solve this problem quickly.

The NodeJs LTS version does not solve the problem.

Update all rollup related packages and add some settings.

The things in the public are connected, but the dashboard is not.

danilodeveloper commented 3 years ago

Hello all!

I just bought this package and for my surprise nothing works.

Seens people are waiting for your fixes for a long time. When does Creative Tim will fix it and make everyone here happy? I can't recognize Creative Tim when things like that happens, I really appreciate your work providing these packages but I can't believe I can't use a package that I just bought.

I'm Really disappointed. I hope you fix this asap and compensate everyone that bought this package increasing the support period.

tks dan

dragosct commented 3 years ago

Hi, @danilodeveloper! Thanks for using our products and we are sorry for this inconvenience. I've just started the project and everything seems to be ok, the project is running without errors. Do you have the latest npm and nodejs LTS version installed?

Regards, Dragos

saifali40 commented 3 years ago

@dragosct10 it is not running for me either, i'm using node v16.13.0 and npm 8.1.0.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: argon-dashboard-pro-svelte@1.1.0
npm ERR! Found: svelte@3.38.2
npm ERR! node_modules/svelte
npm ERR!   dev svelte@"3.38.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer svelte@"~3.20.0" from sveltejs-forms@2.1.2
npm ERR! node_modules/sveltejs-forms
npm ERR!   sveltejs-forms@"2.1.2" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /Users/saifali/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/saifali/.npm/_logs/2021-10-29T08_01_29_847Z-debug.log
dragosct commented 3 years ago

@saifali40! Thanks for using our products. Yes, indeed the npm install is not working when Nodejs release a new version I noticed that this product is crashing every time. This is so weird. We will try to update the product to work properly untill a new version of node will be released :D.

Regards, Dragos

dragosct commented 3 years ago

Hi, @saifali40! After running some tests the product will work fine with the node v14.18.1 which is the latest version from the v14 node. The v15 and v16 seems to have some conflicts with the dependencies and are not compatible with our product.

Regards, Dragos

saifali40 commented 3 years ago

@dragosct10 it does work with node v14.18.1 and i tried nuxtjs as well, both works well and good but as you guys mentioned earlier it is not working with latest lts version looking forward for the node 16 compatible releases. https://nodejs.org/en/about/releases/

saifali40 commented 3 years ago

@dragosct10 people who are using the creative tim pro are meant to get the bug fix in update, as you guys mentioned it will be working with latest npm it doesn't till now. so despite of the subscription end date we should be getting the update.

dragosct commented 3 years ago

Hi, @saifali40! Yes, I'm totally agree with you but in this case we need to find a replace solution for all the dependencies that are not working with latest nodejs. We will do an update for the product.

Regards, Dragos

peranderson commented 3 years ago

Just purchased the lifetime membership to Creative Tim specifically to access this template and get regular updates. When can we expect this issue to be fixed? Downgrading node to v14 is not a solution.

dragosct commented 3 years ago

Hi! We've just released an update of the product which now is running with the latest nodejs. Just one mention when you run the development mode please run first npm install --legacy-peer-deps and then npm run dev.

Regards, Dragos

saifali40 commented 2 years ago

@dragosct10 i didn't get the updates.

danilodeveloper commented 2 years ago

@dragosct10 i didn't get the updates.

I also couldn't find. @dragosct10 can you clarify?

dragosct commented 2 years ago

Hi! Here you will find the details about the update and the product is in your account.

Regards, Dragos

saifali40 commented 2 years ago

Hi! Here you will find the details about the update and the product is in your account.

Regards, Dragos

i didn't get update.

peranderson commented 2 years ago

I did receive the update and did get the template working so thank you!

Per

On Jan 26, 2022, at 10:35 PM, saif ali @.***> wrote:

Hi! Here https://www.creative-tim.com/product/argon-dashboard-pro-svelte you will find the details about the update and the product is in your account.

Regards, Dragos

i didn't get update.

— Reply to this email directly, view it on GitHub https://github.com/creativetimofficial/ct-argon-dashboard-pro-svelte/issues/5#issuecomment-1022865265, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABZ3PE2U5JPIZO33UE6NGDTUYDKTFANCNFSM4XP4YKXQ. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.

iammegalith commented 1 year ago

more than a year after the last update to this bug and it still happens. I just bought the pro version, followed the instructions, and get the same errors as people 2 years ago.

node: v18.16.0 npm: 9.6.5

'Log files: /home/USER/.npm/_logs/2023-05-01T18_10_25_295Z-debug-0.log

npm resolution error report

While resolving: argon-dashboard-pro-svelte@1.2.0 Found: svelte@3.38.3 node_modules/svelte dev svelte@"3.38.3" from the root project

Could not resolve dependency: peer svelte@"~3.20.0" from sveltejs-forms@2.1.2 node_modules/sveltejs-forms sveltejs-forms@"2.1.2" from the root project

Fix the upstream dependency conflict, or retry this command with --force or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.