Magento 2: Blank page after compiling on Developer Environment

Software engineer focusing on PHP, JavaScript, HTML, CSS, CI/CD, GitHub, AWS, Azure & Magento Commerce. I enjoy code for good projects, tech, gym, nature, travel, fried chicken, and coffee.
All my articles are educational only from my experience.
Feel free to connect.
After re-compiling Magento 2 sometimes you get a blank page. Below is solution to fixing this issue
Deleting the global.php file which is under - magento\generated\metadata\global.php
If you want to delete it via command line run this
rm -rf <PathToYourRootDirectory>\generated\metadata\global.php
Re-load your page and it should load.
Happy Coding, Asrin
If this helped you consider buying me a coffee :)






