figma / code-connect

A tool for connecting your design system components in code with your design system in Figma
MIT License
878 stars 64 forks source link

Error when publishing to storybook #174

Open HJZzzzz opened 2 weeks ago

HJZzzzz commented 2 weeks ago

Hi there!

Here its the details:

{ "codeConnect": { "parser": "react", "include": ["src/**"], "exclude": ["docs", "pages"], "importPaths": { "src/components/*": "@ui/component*" }, "paths": { "@ui/*": "src/*" } } } Storybook Meta const meta: Meta<typeof Checkbox> = { component: Checkbox, parameters:{xxxx}, }; When running connect publish, it will throw this error

ParserError Error parsing story /Users/xx/src/components/Checkbox/tests/Checkbox.stories.tsx: undefined: Unexpected shape of property parameters, got node type: CallExpression -> /Users/xx/src/components/Checkbox/tests/Checkbox.stories.tsx:11:14

the error states in the error msg its pointing to component: Checkbox,

May I know are there any ideas regarding this?

rrabherufigma commented 2 weeks ago

Hi @HJZzzzz , can you share the story file please? If you prefer, it can be shared via customer support

HJZzzzz commented 2 weeks ago

sure~ i shared screenshots via the link