BuilderIO / figma-html

Builder.io for Figma: AI generation, export to code, import from web

Home Page:https://www.figma.com/community/plugin/747985167520967365

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

It doesn't work with local files.

misiurina opened this issue · comments

commented

It just doesn't download anything when used with local html files.

Facing the same issue

Hey all - you'll want to use the chrome extension for capturing local files

Please feel free to reopen this if that does not work for you

@steve8708 I'm using the chrome extension and have the same issue. For local html files opened in the browser the chrome extension simply says "Done" and doesn't download a figma .json file
image

Same here.
I tested this as I wanted to easily screencap a HTML mail from Outlook.
However it wasn't related to the special format (*.mht) or that I was relying on Edge.
It was just related to the fact, that the extension can't be used with local files;
possibly a security safeguard that applies to everyone?

I worked around it by using a local http server (I opted for https://www.uwamp.com/ )

@steve8708 Normal GitHub users can't reopen this issue BTW; we could only repost it ;-)

ah! thanks @valioDOTch, reopenning

yeah for anyone interested - in the interim before we find a fix here, a local HTTP server should really help. I often use http-server for this

so if your file is something like site/page.html

assuming you have nodejs installed, from your terminal you can just run

npx http-server ./site

and then that'll host your local file(s) on http://localhost:8080/page.html and then you can use the chrome extension against that URL

hope this helps!