Open HJZzzzz opened 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
{ "codeConnect": { "parser": "react", "include": ["src/**"], "exclude": ["docs", "pages"], "importPaths": { "src/components/*": "@ui/component*" }, "paths": { "@ui/*": "src/*" } } }
const meta: Meta<typeof Checkbox> = { component: Checkbox, parameters:{xxxx}, };
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,
component: Checkbox,
May I know are there any ideas regarding this?
Hi @HJZzzzz , can you share the story file please? If you prefer, it can be shared via customer support
sure~ i shared screenshots via the link
Hi there!
Here its the details:
{ "codeConnect": { "parser": "react", "include": ["src/**"], "exclude": ["docs", "pages"], "importPaths": { "src/components/*": "@ui/component*" }, "paths": { "@ui/*": "src/*" } } }
Storybook Metaconst meta: Meta<typeof Checkbox> = { component: Checkbox, parameters:{xxxx}, };
When running connect publish, it will throw this errorParserError 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?