Magento2.3.5 Di Compile Breaks custom module admin grid

I have an issue whether in developer or production when I run php bin/magento setup:di:compile

I get Fatal error: Uncaught Error: Call to a member function setActive() on bool in /var/www/vhosts/ Stack trace: #0 When code $resultPage->setActiveMenu('Vendor_Module::entity'); then I get a blank page 200 ok There is nothing in exception.log

If I run php bin/magento setup:upgrade after di:compile then * is ok and the grid displays.

Any ideas.