I have already checked this topic and this one
But both them not actually solve 100% my real problem. My theme is installed via composer and it will placed in vendor folder. It's not have any parent for inheritance. Sometimes magento recognize my theme but other try it'doesn't find it
My registration.php for theme
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::THEME,
'vendors/VendorName/theme-name',
__DIR__
);
As you can see theme define above not like any other theme of magento will start with frontend folder
Is this is cause of my problem ? Can anyone in core magento team help me solve this issue! This problem maybe not bug of magento iam not sure
Expect results: I want 100% work theme when i run setup:upgrade . Not ramdomly fail