Giter Site home page Giter Site logo

Comments (7)

Torone avatar Torone commented on July 27, 2024 1

@hongchanhk01 Can I know how did you fix the rollup configuratiuon to avoid this annoying issue? Thanks

from ant-design-icons.

wzhudev avatar wzhudev commented on July 27, 2024

@hongchanhk01

Hi. I am the author of the Angular adapter. You quoted a wrong line of the code. Actually, it's:

this._svgDefinitions.set(withSuffix(icon.name, icon.theme), icon);

For icons provided by ant design, theme property should always be specified.

So I guess the problem wasn't because of these codes?

from ant-design-icons.

hongchanhk01 avatar hongchanhk01 commented on July 27, 2024

@wendzhue

Indeed, I try to dig a little bit deeper seem the data from Icons not that correct. Not sure is it my build problem or something else

image

You can see there are some incorrect data at the first two item for the icons array

from ant-design-icons.

wzhudev avatar wzhudev commented on July 27, 2024

@hongchanhk01 I guess something is wrong with your building process. Actually, you just have to add raw svg files under svg dir and our script would do everything for you.

from ant-design-icons.

hongchanhk01 avatar hongchanhk01 commented on July 27, 2024

@wendzhue

I do think so. Thank you for your time and sorry for the noise.

It seem rollup include default es export for allIcons.

image

Will close the issues for now.

from ant-design-icons.

hongchanhk01 avatar hongchanhk01 commented on July 27, 2024

@wendzhue

Sorry for bother u again

https://github.com/ant-design/ant-design/blob/af8a025aebba01b28ff04fecff76d30117b6e068/components/icon/index.tsx#L3

ant-design/ant-design@c76a90b

May I know shouldn't the import here for ant design icon using just @ant-design/icons instead of the @ant-design/icons/lib/dist build.

Maybe this is why rollup does pick up the correct es modules ?

from ant-design-icons.

htmlin avatar htmlin commented on July 27, 2024

@hongchanhk01 Can I know how did you fix the rollup configuratiuon to avoid this annoying issue? Thanks

from ant-design-icons.

Related Issues (20)

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.