Skip to main content
Question

Import modules to a figma plugin

  • December 23, 2024
  • 0 replies
  • 57 views

Jose_Alejandro_Guerrero

Hi, i’m new at plugin development and i’ve been trying to import this library into my project import { Hct } from “@material/material-color-utilities” when I write this statemente on my code.ts file, it shows me this error when I run it on Figma.


I’ve already made a bundle using webpack but it didn’t work, also I tried with the example which is in the Figma documentation about bundles and libraries and it showed me the same error. I don’t know if nowadays it’s not possible to import external dependencies to a file.ts in Figma. Here is the documentation I’ve been using for this. Really appreciate any help 😦
Libraries and Bundling | Plugin API

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