Hi there!
Can you clarify if your components AAA and BBB are in two different libraries?
To cover some basics, can you make sure that your library is published in your project, and in the file, please click “add to file” so the library will be published in your current file?
If this don’t help, can you also double check when you publish the library where the component ‘AAA’ is located, is there any error such as ‘hidden’ or ‘invalid assets’?
- Usually this issue happens when you try to import your library such as the ‘hidden’ components, please let me know if you saw this when you try to import them:

In the article, you can check the steps to Move published components. The components need to be unhidden before they can be moved.
Please note, it’s not possible to move hidden components between files. This is something to look out for, especially if you have components that use nested instances of a hidden component. You need to publish hidden components, before you can move them to another file. Once you’ve moved those components and published the changes to the library, you can mark hide them again.
- And, please also check if you have any unused properties in components in the file you’re trying to import. If there are unused properties in a component, you will need to assign those properties, or remove them before you are able to publish to the library. I will also recommend to Explore component properties.

Hope this helps!