Skip to main content
Solved

Plugin errors


Parham_Ashorian

Hi experts!
i wrote my plugin with vscode and now i wanna run plugin but received this message. 👇
i also click => tsc:watch - tsconfig.json
plz help me.

this my tsconfig.json file 👇

{
  "compilerOptions": {
    "target": "es6",
    "lib": ["es6"],
    "typeRoots": [
      "./node_modules/@types",
      "./node_modules/@figma"
    ]
  }
}

iam really confused

Best answer by tank666

It looks like you didn’t do something.

Have you compiled TypeScript to JavaScript?
Compilation successful?
Are the compiled code.js and ui.html files located in the path specified in manifest.json?

View original

4 replies

tank666
  • 4871 replies
  • June 20, 2022

Did you follow the instructions in the README.md that is in your plugin folder?

Figma Help Center

Parham_Ashorian

yes i did all of note


tank666
  • 4871 replies
  • Answer
  • June 20, 2022

It looks like you didn’t do something.

Have you compiled TypeScript to JavaScript?
Compilation successful?
Are the compiled code.js and ui.html files located in the path specified in manifest.json?


Parham_Ashorian

oh tnx
i didnt compiled my code


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