错误:Fatal error: Uncaught TypeError: Argument 4 passed to Magento\Developer\Model\View\Asset\PreProcessor\FrontendCompilation::processContent() must be an instance of Magento\Framework\View\Asset\File\FallbackContext, instance of Magento\Framework\View\Asset\File\Context given, called in /data/web/magento2/vendor/magento/module-developer/Model/View/Asset/PreProcessor/FrontendCompilation.php on line 90
解决:Your error may indicate that something has been minified or merged or compiled for client side. Run php bin/magento deploy:mode:set development.
Clear all caches and if you still get this error, go to the database to the core_config_data table and look for client_side_compilation.
Find the path “dev/front_end_development_workflow/type” and if the value is “client_side_compilation” then change it to “server_side_compilation”. Clear all caches again and run rm -rf var/cache/*
It should work fine after that. I’m not sure what causes the error. Probably some sort of caching mechanism that isn’t cleared correctly.