Hi Dan,
thanks. It works if I enable the new experience and removing the custom login page.
Of note, the JS editor still thinks “PreUserRegistrationError” doesn’t exist:
[ESLint] 'PreUserRegistrationError' is not defined. (no-undef)
Despite this, the error shows as expected.