Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Plugin doesn't work - stuck on loading #23

Closed
philipamour opened this issue Jan 29, 2021 · 9 comments
Closed

Plugin doesn't work - stuck on loading #23

philipamour opened this issue Jan 29, 2021 · 9 comments

Comments

@philipamour
Copy link

philipamour commented Jan 29, 2021

I've created color variables with the following names:
Color/Background
Dark/Background
and changed Appearance settings to use Color for light styles and Dark for dark styles.

When running the plugin (e.g. Appearance -> Dark Mode), the plugin gets stuck on Running Appearance. The console shows the following:

/api/design_systems/library/styles/----------:1 Failed to load resource: the server responded with a status of 404 ()
static.figma.com/fullscreen/----------/jsvm-cpp.js.br:8 unhandled promise rejection: TypeError: cannot read property 'name' of undefined
printChar @ static.figma.com/fullscreen/----------/jsvm-cpp.js.br:8
static.figma.com/fullscreen/----------/jsvm-cpp.js.br:8     at getPaints (PLUGIN_9_SOURCE:146)
printChar @ static.figma.com/fullscreen/----------/jsvm-cpp.js.br:8

https://www.figma.com/file/uC1HjQawIe0IIUDFlKlMK3/Appearance-Plugin-Error?node-id=0%3A1

@glmrvn
Copy link
Owner

glmrvn commented Feb 1, 2021

Hello. I pushed update 3 days ago. Please check it out. Plugin updated automatically in Figma.
I checked your sample file and plugin works.

@philipamour
Copy link
Author

I've just checked again - reinstalled plugin, etc. and for some reason this only happens on the desktop app and not the browser version of Figma. Also in organization files that use components and link to colors in a design system file, I keep getting the "Selection does not have style pairs" error - any ideas on what that may be caused by? (I can't share affected files as they are my employer's IP 🙁)

@philipamour
Copy link
Author

Quick update - managed to get the sample file to work after re-downloading Figma and deleting caches. The issue with design system/libraries still persists. 🙁

@philipamour
Copy link
Author

Just tested a hypothesis and the plugin is working fine as long as it's getting used in a file where the shared colors live. It doesn't seem to work if I have a Design System file with all the colors and then work in a separate file that links to those colors.

@glmrvn
Copy link
Owner

glmrvn commented Feb 1, 2021

I fix issue with local files. Plugin updated automatically. Please check your cases.

@philipamour
Copy link
Author

Hi, I'm still seeing "Selection does not have style pairs" error when trying to change appearance in a figma file that's using color styles from a team library.

@glmrvn
Copy link
Owner

glmrvn commented Feb 4, 2021

Please select "Save styles" in the plugin menu in your team library file. And check settings in the plugin menu.
Then go to the connected file and try use dark/light mode.

@philipamour
Copy link
Author

philipamour commented Feb 4, 2021 via email

@philipamour
Copy link
Author

philipamour commented Feb 4, 2021 via email

@glmrvn glmrvn closed this as completed Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants