After installing AssetMapper and removing Webpack Encore in Symfony 7.0, I'm now getting this error:
An exception has been thrown during the rendering of a template ("Asset manifest file "/.../public/build/manifest.json" does not exist. Did you forget to build the assets with npm or yarn?").
It's reported at this line in my base.html.twig:
{% block importmap %}{{ importmap('app') }}{% endblock %}
It's coming from the
json_manifest_pathsetting somewhere in yourconfig/folder (probablyconfig/packages/assets.yamlorconfig/packages/framework.yaml).Solution: Just delete that setting :-)