Closed jacktowery closed 7 months ago
same issue here
Having the same issue. Did some tinkering and it appears the problem is Typescript 5.4. Installing typescript 5.3 instead fixed it for me.
I ended up skipping the lib check to avoid this error, in tsconfig.json
adding skipLibCheck: true
"compilerOptions": {
...
"skipLibCheck": true
},
...
}
This issue should be fixed as of 3.2.0
$ npx --yes -- create-figma-plugin@3.2.0 --template plugin/preact-rectangles
info Copying "plugin/preact-rectangles" template...
info Resolving package versions...
info Installing dependencies...
success Done
First:
cd preact-rectangles
To build the plugin:
npm run build
To watch for code changes and rebuild the plugin automatically:
npm run watch
$ cd preact-rectangles
$ npm run build
> build
> build-figma-plugin --typecheck --minify
info Typechecking...
success Typechecked in 0.850s
info Building...
success Built in 0.327s
I'm getting a TypeScript error when trying to build the
plugin/preact-rectangles
orplugin/preact-resizable
templates for the first time:Steps to reproduce (following the Quick Start guide):
$ npx --yes create-figma-plugin
plugin/preact-rectangles
orplugin/preact-resizable
$ cd preact-rectangles
$ npm run build
The same error occurs when attempting to add
@create-figma-plugin/ui
to an existing plugin following the instructions on the documentation website.