Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

428
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!