You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And if I run the command zeplin connect it fails with the following error:
Connecting components to Zeplin components failed.
Error occurred while processing components/button/index.tsx with @zeplin/cli-connect-react-plugin:
No suitable component definition found.
Yes, you are correct about the problem. It is about the inability of react-docgen to resolve imported React components. There are open PRs (reactjs/react-docgen#352, reactjs/react-docgen#464) to support it but are still waiting to be merged. The former one is stale but I guess the latter will be merged soon.
AFAIK, the issue is already resolved for TS components using react-docgen-typescript, we plan to refactor the plugin to use both libraries if there won't be a react-docgen release with imported component support soon.
What I have
Hello, I have a functional component like this:
What is happening
And if I run the command
zeplin connect
it fails with the following error:If i rewrite the component to an class like this:
It works well.
What I expected
I expected I can connect functional components also with zeplin. but it looks like this is not correct.
Can someone confirm that or show me a working solution for my code?
The text was updated successfully, but these errors were encountered: