CodeConnect nested component is not included as imported
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!
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, thanks a lot. Reached out to the support
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!
Hi @tomduncalf-figma Thanks a lot for the update!