shinokada / svelte-awesome-icons

Font Awesome SVG icon components for Svelte. Svelte-Awesome-Icons support major CSS frameworks using the class props.
https://svelte-awesome-icons.codewithshin.com
MIT License
17 stars 2 forks source link

Installation Error #6

Open harunzafer opened 6 months ago

harunzafer commented 6 months ago

Describe the bug

npm i -D svelte-awesome-icons returns this error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: webdroid-panel@0.0.1
npm ERR! Found: svelte@4.2.16
npm ERR! node_modules/svelte
npm ERR!   dev svelte@"^4.2.7" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer svelte@"^5.0.0" from svelte-awesome-icons@2.0.0-next.7
npm ERR! node_modules/svelte-awesome-icons
npm ERR!   dev svelte-awesome-icons@"*" 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! 
npm ERR! For a full report see:
npm ERR! /home/harun/.npm/_logs/2024-05-07T16_34_28_435Z-eresolve-report.txt

Reproduction

packages.json


{
    "name": "webdroid-panel",
    "version": "0.0.1",
    "private": true,
    "scripts": {
        "dev": "vite dev",
        "build": "vite build",
        "preview": "vite preview",
        "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
        "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
        "lint": "prettier --check . && eslint .",
        "format": "prettier --write ."
    },
    "devDependencies": {
        "@sveltejs/adapter-auto": "^3.0.0",
        "@sveltejs/kit": "^2.0.0",
        "@sveltejs/vite-plugin-svelte": "^3.0.0",
        "@types/eslint": "^8.56.0",
        "@typescript-eslint/eslint-plugin": "^7.0.0",
        "@typescript-eslint/parser": "^7.0.0",
        "autoprefixer": "^10.4.16",
        "eslint": "^8.56.0",
        "eslint-config-prettier": "^9.1.0",
        "eslint-plugin-svelte": "^2.35.1",
        "flowbite": "^2.3.0",
        "flowbite-svelte": "^0.46.1",
        "lucia": "^3.2.0",
        "postcss": "^8.4.32",
        "postcss-load-config": "^5.0.2",
        "prettier": "^3.1.1",
        "prettier-plugin-svelte": "^3.1.2",
        "prettier-plugin-tailwindcss": "^0.5.9",
        "prisma": "^5.13.0",
        "svelte": "^4.2.7",
        "svelte-check": "^3.6.0",
        "svelte-meta-tags": "^3.1.2",
        "tailwindcss": "^3.3.6",
        "tslib": "^2.4.1",
        "typescript": "^5.0.0",
        "vite": "^5.0.3"
    },
    "type": "module",
    "dependencies": {
        "@lucia-auth/adapter-prisma": "^4.0.1",
        "@lucia-auth/adapter-sqlite": "^3.0.1",
        "@prisma/client": "5.13.0",
        "dayjs": "^1.11.11",
        "flowbite-svelte-admin-dashboard": "^0.1.2"
    }
}

Version and System Info

System:
    OS: Linux 5.15 Ubuntu 22.04.2 LTS 22.04.2 LTS (Jammy Jellyfish)
    CPU: (16) x64 12th Gen Intel(R) Core(TM) i5-12500H
    Memory: 1.65 GB / 7.63 GB
    Container: Yes
    Shell: 5.8.1 - /usr/bin/zsh
  Binaries:
    Node: 20.8.0 - ~/.nvm/versions/node/v20.8.0/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v20.8.0/bin/yarn
    npm: 10.1.0 - ~/.nvm/versions/node/v20.8.0/bin/npm
    pnpm: 9.1.0 - ~/.nvm/versions/node/v20.8.0/bin/pnpm
  Browsers:
    Chrome: 121.0.6167.184
  npmPackages:
    @sveltejs/kit: ^2.0.0 => 2.5.7 
    svelte: ^4.2.7 => 4.2.15 
    vite: ^5.0.3 => 5.2.10
shinokada commented 6 months ago

You are installing v2, that is for Svelte Runes.

Install the latest.