question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error building with iconify api

See original GitHub issue

When I Run build inside GatsbyJS it says Building static HTML failed but only Iconify for React with API. method

image

Im wan’t the Api version because I need to call the icon name with a string

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
cyberaliencommented, Dec 18, 2020

Excellent!

I’ve just published update, so all you need to do is update dependencies.

0reactions
igorgarciacocommented, Dec 18, 2020

Do you know all possible values for iconName? If yes and you can create list of those icons, you can use this example to generate bundle: https://docs.iconify.design/sources/bundles/examples/component-simple.html

I do know the values for iconName the idea is that I want to use all iconify names whenever I want haha.

Tested Gatsby, got error message and after debugging it I think I’ve figured it out.

Try files in attachment. Replace files in node_modules/@iconify/react-with-api/dist Archive.zip

wow it works, thank you ❤️ but only locally for now, since im using gatsby cloud or Netlify it downloads node modules for himself.

Read more comments on GitHub >

github_iconTop Results From Across the Web

error • coolicons • Iconify
Web component will load icon data from Iconify API and render SVG. Make sure you import IconifyIcon web component: <script src="https://code.iconify.design/ ...
Read more >
SVG framework functions
console.error('Failed to load home icon'); ... Returns icon data, returns IconifyIcon object. ... Component caches only icons retrieved from API.
Read more >
Iconify Utils
Iconify Utils is a set of reusable functions for working with icon sets and icon data. Library is written in TypeScript, is available...
Read more >
Iconify Updates
Host your own Iconify API with open source icon sets or your own icons! Build applications for searching, browsing and selecting icons, integrate...
Read more >
Iconify for Vue Offline Use
If you do not want to use API, you need to provide icon component with data for all icons you are using. There...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found