What do you want to achieve?
I created components named DataTab. These are blue tiles of button which contains labels. After exporting the component is missing from the design, but the elements could be returned back when the DataTabs are detached. Why it is happening?
What have you tried so far?
Screenshot or video
Others
- SquareLine Studio version: 1.5.3
- Operating system: Microsoft Windows 11
- Target hardware: STM32,ST7796
This is how it should look.
The tiles now are individual elements, but should be component. After exportng the UI the components are missing, tiles are not visible anymore. Only if detached.
Hi, the question marks (???
) you see instead of the component’s name indicate that SquareLine Studio cannot load the component’s definition file.
Please check if the DataTab
component file is present in your project’s components
folder. It seems like the file might be missing or corrupted.
Hi, yes at the beginning the file is available. I created now some basic component.
The “ComponentLabel.ecomp” is available in the components folder when projects saved, but after exporting the UI files the “ComponentLabel.ecomp” file is missing/removed from the folder.
Why does it happen?
What seems that helps for is backing up the component file immediatelly after saving the project and then pasting it back to the components folder.
Hi, a possible cause for this issue could be the export destination folder. SquareLine Studio cleans the target folder before exporting to ensure that files from deleted elements are removed.
It is possible that you are exporting the UI files into the project folder itself. If this is the case, the cleanup process might be unintentionally deleting the .ecomp
file along with the old UI files.
Could you please try the following as a troubleshooting step?
- Create a new, empty folder completely outside of your project’s directory.
- In SquareLine Studio, go to Project Settings and set this new folder as the Export path.
- Export your UI again.
Please let us know if exporting to a separate folder solves the problem. This will help us confirm if this theory is correct.