Skip to main content
Question

"Module has no exported member" error


Ivan_Starcevic

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?

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings