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

CodeConnect nested component is not included as imported

Open ikochetov-mdsol opened this issue 1 year ago • 4 comments

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

ikochetov-mdsol avatar Feb 03 '25 20:02 ikochetov-mdsol

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

tomduncalf-figma avatar Feb 04 '25 10:02 tomduncalf-figma

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

ikochetov-mdsol avatar Feb 04 '25 12:02 ikochetov-mdsol

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!

tomduncalf-figma avatar Feb 06 '25 11:02 tomduncalf-figma

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

ikochetov-mdsol avatar Feb 07 '25 09:02 ikochetov-mdsol