Skip to main content

Command Palette

Search for a command to run...

Magento 2: Blank page after compiling on Developer Environment

Published
1 min read
Magento 2: Blank page after compiling on Developer Environment
A

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 :)