tsimenis / figma-export-icons

Uses the Figma REST api to export svg icons into your project
MIT License
54 stars 24 forks source link

1026 icons limit #13

Open yceballost opened 3 years ago

yceballost commented 3 years ago

Hi!

I'm having a trouble with my icon library because I have near to 1100 icons but when I use this package Figma through an error in 1026 exports.

I suppose that is it a limit from Figma.

It is possible to have more than one config file? I could run this script with github actions 2 or 3 times to export all the icons.

Another workaround to solve this problem is welcome!

Fernker commented 2 years ago

What errors were you seeing?

I was getting errors on a Figma file with 400 icons with an ECONNRESET. I found a fix but wanted to see if you're having the same issue.

yceballost commented 2 years ago

Sorry for this late reply.

My workaround was splitting my workflow into different "templates"

You can see more here https://github.com/Telefonica/mistica-icons/blob/production/.github/workflows/figma-export.yml

mariohamann commented 10 months ago

I've created a rewritten fork of this repo, which makes everything a lot more configurable: https://github.com/mariohamann/figma-export-assets

Per default it downloads the icons in batches and you can even define the batch size, therefore you shouldn't come into any trouble. :)