google / AEUX

Editable After Effects layers from Sketch artboards
Apache License 2.0
513 stars 56 forks source link

Figma plugin not working #43

Closed haileyylum closed 2 years ago

haileyylum commented 3 years ago

Hi, I just get started on this plugin but unfortunately when I tried to import the plugin to Figma, it return a typescript error and I have followed the read.me instruction run in VS code, the terminal console return the error messages. Please let me know if I have missed anything.

Thanks!

`[20:00:04] Starting compilation in watch mode...

code.ts:8:14 - error TS2304: Cannot find name 'SceneNode'.

8 const nodes: SceneNode[] = [];


code.ts:10:16 - error TS2304: Cannot find name 'figma'.

10   const rect = figma.createRectangle();

code.ts:13:3 - error TS2304: Cannot find name 'figma'.

13 figma.currentPage.appendChild(rect);


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

16 figma.currentPage.selection = nodes;

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

17 figma.viewport.scrollAndZoomIntoView(nodes);


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

21 figma.closePlugin();

[20:00:05] Found 6 errors. Watching for file changes.

                           `
adamplouff commented 3 years ago

Sorry for the trouble. You should not have to be using VS Code at all. Everything runs within the Figma interface. Did you install it following the Non-Googlers installation?