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

Error when using plugin: TypeError: Cannot read property 'value' of undefined #14

Open
isness opened this issue Dec 22, 2020 · 1 comment

Comments

@isness
Copy link

isness commented Dec 22, 2020

I installed Adobe XD version 35.3.12.2 (Starter) and can't get this plugin to work. When I click on Xamarin Form Exporter from Plugins menu nothing happens. In Developer console I see:

TypeError: Cannot read property 'value' of undefined at getColors (<settings>\plugins\db0fd4aa\main.js:83:60)

I discovered that 'assets.colors.get()' on line 75 does not always contain object with attribute 'color' but sometimes 'gradientTape' instead, which is causing the problem. I can filter out this value, but I'm unsure what the correct would be. What should I do with this value? Could somebedy look into it? I'd be grateful.

@srhan00
Copy link

srhan00 commented Jan 8, 2021

I have the same issue...

edit - after some playing around I think it is this line let newColor = convertTo('hex', allColors[i]['color']['value']);. If you hard-code it like let newColor = 0x00FFFFFF; then the exporting works...

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