code-connect icon indicating copy to clipboard operation
code-connect copied to clipboard

Error when publishing to storybook

Open HJZzzzz opened this issue 1 year ago • 2 comments

Hi there!

Here its the details:

  • Code Connect CLI version 1.1.3
  • Operating system macOs
  • Code Connect file, Figma design and/or relevant code snippet that could help us get more context

{ "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?

HJZzzzz avatar Sep 25 '24 10:09 HJZzzzz

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

rrabherufigma avatar Sep 26 '24 11:09 rrabherufigma

sure~ i shared screenshots via the link

HJZzzzz avatar Sep 27 '24 05:09 HJZzzzz