zeplin / storybook-zeplin

Storybook addon to view Zeplin resources in story panel
https://storybook-zeplin.netlify.app
MIT License
116 stars 16 forks source link

Component not found #30

Open umitkucuk opened 3 years ago

umitkucuk commented 3 years ago

First off, I would like to thank you for creating such an amazing addon for Storybook. 🔥

I am facing a small issue and I may need to get some help. When the component link is used for zeplinLink, we get a message that says "Component not found".

export default {
  title: 'Button',
  ...
} as Meta

const Template: Story<ButtonProps> = (args) => <Button {...args} />

export const Primary = Template.bind({})
Primary.parameters = {
  zeplinLink: 'https://app.zeplin.io/project/PROJECT_ID/styleguide/components?coid=COMPONENT_ID'
}

When the screen link is used, everything works fine. zeplinLink: 'https://app.zeplin.io/project/PROJECT_ID/screen/SCREEN_ID'

What am I missing here?

mertkahyaoglu commented 3 years ago

Hi @umitkucuk. Thanks for the kind words.

Does the component reside in the project's local styleguide or is it linked to a styleguide from another organization? If the latter, it's possible that the token you are using could not have permission to reach that styleguide's component.

deborah-ufw commented 2 years ago

+100 to umitkucuk's comment concerning the amazing add on!

I'm having a similar problem. I initially linked to my local storybook (my team of Engineers all launch local instances), but the failures to load the local components are happening much more often than not. I'd like to edit the link to attach Zeplin to our public SB instance, but don't see a way to do that.

Is it possible to look for a solution here, or should I open a separate issue?

umitkucuk commented 2 years ago

Hi @umitkucuk. Thanks for the kind words.

Does the component reside in the project's local styleguide or is it linked to a styleguide from another organization? If the latter, it's possible that the token you are using could not have permission to reach that styleguide's component.

I apologize for the oversight 🙄

We created a user who has viewer access to the project and created an access token from this user account. Currently, all components reside in the local style guide of the project. The problem still occurs.

mertkahyaoglu commented 2 years ago

@umitkucuk Could you share project id and component id along with the id of the user who's trying to access the component so we can investigate what's going on? These are not confidential data but if you are not comfortable sharing them here, you can send an email to me at mert@zeplin.io.

mertkahyaoglu commented 2 years ago

@umitkucuk Are you still having this issue?

naeem-catchafire commented 2 years ago

I'm having the exact same issue as umitkucuk. My account has admin access. I created a personal access token, and when I try to link to components in zeplin I get the same error of Component not found

project id: 60d90a5170a144160c8c3c25 component id: 61c394a3d609926cabbc16e2 user id: 5ba108c430beb747efa9bd6b

umitkucuk commented 2 years ago

@umitkucuk Are you still having this issue?

Yes, unfortunately 😔