Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeConnect nested component is not included as imported #238

Open
ikochetov-mdsol opened this issue Feb 3, 2025 · 4 comments
Open

CodeConnect nested component is not included as imported #238

ikochetov-mdsol opened this issue Feb 3, 2025 · 4 comments

Comments

@ikochetov-mdsol
Copy link

ikochetov-mdsol commented Feb 3, 2025

Please provide:

  • Code Connect CLI version 1.2.4
  • Operating system macOS 14.6.1

Hi there,

I have a FormControl utility available in both Figma and code. This component is code-connected and serves as a foundation for designing various other components. For instance, in Figma, my FormControl component includes a slot where I insert a TextInput (which is also code-connected) to create a TextField component. In this setup, TextInput acts as a nested instance.

Previously, in inspect mode, the code snippet displayed imports for both FormControl and TextField. However, I recently noticed that only the FormControl import is shown, while TextField is still present in the code snippet but missing from the import list.

Is that a known issue?

Thanks!

Image
@tomduncalf-figma
Copy link
Contributor

Hey @ikochetov-mdsol, this looks like a bug. Could you please contact our support team and they can arrange for us to securely access your file? Please mention that you were referred from Code Connect Github and would like to give us access to the file in question

@ikochetov-mdsol
Copy link
Author

@tomduncalf-figma, thanks a lot. Reached out to the support

@tomduncalf-figma
Copy link
Contributor

tomduncalf-figma commented Feb 6, 2025

Hey @ikochetov-mdsol, thanks for that. I've confirmed this was a bug we inadvertently introduced when trying to improve an edge case with imports. We're reverting that change, so this should be fixed early next week. It will be fixed on the Figma web side, so no need to upgrade or republish.

Apologies for the inconvenience!

@ikochetov-mdsol
Copy link
Author

Hi @tomduncalf-figma
Thanks a lot for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants