Code Monkey home page Code Monkey logo

Comments (5)

Khoulaiz avatar Khoulaiz commented on June 3, 2024 1

I can confirm that 2.1.1 fixed all the warnings. Thanks a lot!

from svelte-icon.

cristovao-trevisan avatar cristovao-trevisan commented on June 3, 2024

There's a need to update all the build tools, since svelte-package has changed the way works.
Meanwhile I've updated manually the .exports in package.json for 2.0.2, please try it out to see if the warning is still there

from svelte-icon.

Khoulaiz avatar Khoulaiz commented on June 3, 2024

While version 5 is the current major version of svelte, we are still using svelte 4.
So we upgraded to svelte-icon 2.1.0 and this warning is gone. But in exchange we had to do a force install because of the dependency conflict that is now introduced.

❯ npm install --save-dev svelte-icon                                                           ~/p/pwss/frontend/email
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/svelte
npm ERR!   dev svelte@"^4.2.15" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer svelte@"^3" from [email protected]
npm ERR! node_modules/svelte-icon
npm ERR!   dev svelte-icon@"^2.1.0" 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! /Users/vwh2ipn/.npm/_logs/2024-04-19T07_39_34_881Z-eresolve-report.txt

svelte-icon works without problems with svelte 4 btw.

from svelte-icon.

Khoulaiz avatar Khoulaiz commented on June 3, 2024

Just for information: We use this lib for all kind of SVGs, not just icons. It's the most simplest way to control SVG illustrations in a svelte project. Really great for it. Just to let you know...

from svelte-icon.

cristovao-trevisan avatar cristovao-trevisan commented on June 3, 2024

Had the wrong semver for the peerDepenencies, should be fixed in 2.1.1

from svelte-icon.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.