Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Cant generate JSON from localhost address #85

Open
Webrow opened this issue Nov 3, 2021 · 6 comments
Open

Cant generate JSON from localhost address #85

Webrow opened this issue Nov 3, 2021 · 6 comments

Comments

@Webrow
Copy link

Webrow commented Nov 3, 2021

As I am developping locally Id like sometimes like to export designs from there. When I click the plugin, no "Download" is started, or JSON is created. (it works on other pages). Any debug I can check or look into?

@steve8708
Copy link
Collaborator

Hey @Webrow - are you using the figma plugin or the chrome extension to grab your content from localhost?

@Webrow
Copy link
Author

Webrow commented Nov 3, 2021

Yes correct! I installed the chrome extension, go to local served host and try to export it, but no JSON is being generated (no download triggered and no tab)

@Webrow
Copy link
Author

Webrow commented Nov 18, 2021

@steve8708 Not to bump, but is there any debugging you'd like me to do to look into this?

@steve8708
Copy link
Collaborator

Yeah, two things I'd love to find out

  • do you get any errors in the chrome devtools JS console? if so can you share?
  • if you something like ngrok to make the host no longer localhost, does importing work?

@bradleytaftsmith
Copy link

bradleytaftsmith commented Aug 2, 2022

hey @steve8708 I'm also running into the same behavior.

I get no output on JS console on chrometools (short video here)
I was unable to get the file shown there served simply using ngrok and didn't have time to troubleshoot it. getting the HTML I'm wanting into Figma hosted somewhere is a bit more than this is worth.

Hope this helps troubleshooting! I'd love to be able to import local HTML files for this work project, will continue to look for a work around.

@bradleytaftsmith
Copy link

I was able to work around the problem above by using npm http-server to serve my HTML page I wanted captured locally. I used homebrew to install npm, npm to install http-server, a http-server to serve the file to my browser. Then figma-html was able to handle it and export json as expected.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants