Magento 2 Setup:di:compile "No tokens were provided"

In the early days of Magento 2, I find it difficult to fix so after doing a lot of research. I am able to fix it by doing follow below solution.


Reason:

This error is due to empty PHP files that are present in your magneto installation.


Solution:

To find empty PHP files run

find * -type f -empty
on your terminal/putty or any other SSH client tool.


Thanks for reading! I hope it helps.

No comments:

Post a Comment