After upgrading to symfony 5, I found a warning of a missing asset of symfony's error-handler:
php.WARNING: Warning: include(/var/www/projekt/nakade/vendor/symfony/error-handler/ErrorRenderer/../Resources/assets/css/error.css): failed to open stream: No such file or directory {"exception":"[object] (ErrorException(code: 0):
After investigating this issue I found the assets directory missing in prod environment while in dev env directory and css class is existing. I assume the css is missing because the component is just in require-dev.
"require-dev": {
...
"symfony/browser-kit": "5.0.*",
"symfony/css-selector": "5.0.*",
"symfony/debug-bundle": "5.0.*",
"symfony/maker-bundle": "^1.13",
"symfony/phpunit-bridge": "^5.0",
"symfony/profiler-pack": "1.0.*",
"symfony/test-pack": "^1.0",
"symfony/var-dumper": "5.0.*"
},
The env var is set in .env.local APP_ENV=prod
The error message showed up by the google-bot due to a missing robots.txt and sitemap.xml. THis is fixed and error and the warning is gone but I curious about it.
Has someone an idea how to fix this?