Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

429
Vistas
Cannot find name 'figma' error on setting up Figma plugin

I'm new to TS and JS.

Now I'm trying to set up my first plugin using the guide on macOS.

At some point I got an error:

/code.ts:9:1 - error TS2304: Cannot find name 'figma'.

I followed all the steps from the guide

I suppose the next action in the Terminal.app should have solved the problem, but it did not

sudo npm install --save-dev @figma/plugin-typings
Password:
npm WARN saveError ENOENT: no such file or directory, open '/Users/username/package.json'
npm WARN enoent ENOENT: no such file or directory, open '/Users/username/package.json'
npm WARN username No description
npm WARN username No repository field.
npm WARN username No README data
npm WARN username No license field.

+ @figma/plugin-typings@1.33.0
updated 1 package and audited 1 package in 2.72s
found 0 vulnerabilities

The first line of "*.ts" code(except comments) looks like:

figma.showUI(__html__);

I write C++, Swift, Objective-C, some Java a lot and there are some include/import statements. But here is none. I don't know how to deal with it in TS at the moment. =(

PS Thanks for your time

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Just run this command in a project directory.

Use:

cd <path to your project directory>

to change directory. TIP: Print "cd ", simply drag and drop the project directory into the "Terminal.app" to not to print the full path manually.

Than:

npm install --save-dev @figma/plugin-typings

I did it in another directory. There is no info about it in the guide.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda