Giter Site home page Giter Site logo

build iconify-icon in local failed about iconify HOT 6 OPEN

ruoru avatar ruoru commented on May 28, 2024
build iconify-icon in local failed

from iconify.

Comments (6)

baboon-king avatar baboon-king commented on May 28, 2024

Why not try pnpm i @iconify/json.
This will give you all the icon data

from iconify.

ruoru avatar ruoru commented on May 28, 2024

Why not try pnpm i @iconify/json. This will give you all the icon data

  1. We have a visual team
  2. The company has restrictions on external network resources

from iconify.

cyberalien avatar cyberalien commented on May 28, 2024

You need to build other packages in monorepo. Run pnpm run build from root directory.

from iconify.

cyberalien avatar cyberalien commented on May 28, 2024
  1. The company has restrictions on external network resources

Then maybe this icon component is not a good fit for your project? It is intended to be used when there are many possible icons that can be loaded, such as in icon browsers.

If you have a predefined set of icons that are used in your project, API loading might not be the best approach, it would be better to use something that bundles icons, such as Unplugin Icons, UnoCSS, Iconify plugin for Tailwind or just embedding SVGs.

from iconify.

ruoru avatar ruoru commented on May 28, 2024

My original intention was to modify the iconify-icon pageckage to take it offline and use the native H5 method to make it compatible with multiple frameworks, its success in iconify pnpm build.
Also i want to use a simple and unified method to adapt to multiple different technology stacks

in addition, its not updated for a long time, its mak not work

	"dependencies": {
		"@iconify/types": "^2.0.0"
	},
	"devDependencies": {
		"@iconify/core": "^2.0.1",
		"@iconify/utils": "^2.1.12",

from iconify.

cyberalien avatar cyberalien commented on May 28, 2024

Both core and utils packages are part of this monorepo, so building from monorepo will link to correct version.

Published version is irrelevant for that because iconify-icon package was not designed to be built outside of monorepo. Though I have not published updates for core package for a while, so I just published 2.0.2, which should make it possible to build icon component outside of this monorepo.

from iconify.

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.