figma-plugin-react-template icon indicating copy to clipboard operation
figma-plugin-react-template copied to clipboard

cannot import js functions to controller.ts

Open kakax114 opened this issue 3 years ago • 0 comments

using regular way to import import { foo } from './func.ts', and call foo() got

TypeError: not a function at ./src/plugin/controller.ts (PLUGIN_71_SOURCE:119) at call (native) at webpack_require (PLUGIN_71_SOURCE:20) at (PLUGIN_71_SOURCE:84) at (PLUGIN_71_SOURCE:343) at call (native) at (PLUGIN_71_SOURCE:346)

kakax114 avatar Aug 14 '22 04:08 kakax114