Afform - Angular error `Controller 'afFieldset', required by directive 'afField', can't be found!`
Overview
Afform field blocks with a path or in a dashboard panel do not load fields.
Previously reported on mattermost.
Reproduction steps
- Create an Afform field block, e.g. for Contact entities
- Add at least one field (e.g.
first_name
andlast_name
) - Add a path for a standalone form
- Save and Load the standalone form.
Current behaviour
The fields don't show. The JS console throws Controller 'afFieldset', required by directive 'afField', can't be found!
Expected behaviour
The form should show the fields and let the user enter values and save the entity.
Environment information
This is reproducible on dmaster and was tested with a Chromium browser.
Comments
We'd be able to provide some funding for resolving this issue if adding/editing entities will then work with those forms, as we're planning to use Afform for providing forms for entities that don't have their own forms yet. @colemanw that's for the virtual entity thing.