tokens-bruecke / figma-plugin

TokensBrücke is a Figma plugin that converts Figma variables into design-tokens JSON.
MIT License
49 stars 11 forks source link

Missing dependency in package.json #26

Open r1m opened 1 month ago

r1m commented 1 month ago

Hello I checked out the project and run the following commands

pnpm install
pnpm build

but webpack fails with missing types

ERROR in /home/sylvain/projects/ds/figma-plugin/src/app/CodePreviewView/index.tsx(13,14) TS2580: Cannot find name 'require'. Do you need to install type definitions for node? Try npm i --save-dev @types/node.

After a pnpm add -D @types/node command. It seemed to build.

Side question : why there are no more build.zip in releases ?

PavelLaptev commented 1 month ago

Thank you @r1m Added @types/node and also added build.zip to the latest release https://github.com/tokens-bruecke/figma-plugin/releases/tag/2.2.1