Symfony Error: "An exception has been thrown during the rendering of a template" Symfony Error: "An exception has been thrown during the rendering of a template" symfony symfony

Symfony Error: "An exception has been thrown during the rendering of a template"


Execute the below commands:

yarn add --dev @symfony/webpack-encoreyarn add webpack-notifier --devyarn encore dev

It will generate the manifest.json file


I have resolved this problem by not using json_manifest_path: ~

comment out the json_manifest_path by adding '#' in front of itand add '~' after 'assets:'

framework:    assets: ~        #json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'


yarn encore dev-server --hot creates the manifest.json file