"Module has no exported member" error

Hi,

I have set up the environment as described on this page: https://www.figma.com/plugin-docs/setup/

I tried importing node_modules, specifically Adobe Leonardo: https://leonardocolor.io/#. The installation itself went without any problems. However, when I try to import nodes using an example from the Adobe website

import { Theme, Color, BackgroundColor } from '@adobe/leonardo-contrast-colors';

, I get an error message

It may be important for you to know that I successfully created another plugin that does not use the third-party library and everything works smoothly. Also, this is not the only library I have tried to install and use. I saw an example written by Gleb, and I wanted to try to play with that library, but I got the same error. I read that this is a common error and that the usual solution is to restart the Visual Studio code, which did not help me.

Did anyone have similar errors and how did you solve them?

1 Like