Current behavior:
Updating a template or a view model which uses ValidationController causes HMR to crash with
Uncaught (in promise) Error: A ValidationController has not been registered.
at ValidateBindingBehaviorBase.bind (aurelia-validation.js?f0d7:1082)
at BindingBehavior.bind (aurelia-binding.js?5f98:1191)
at Binding.bind (aurelia-binding.js?5f98:4996)
at View.bind (aurelia-templating.js?8628:1678)
at eval (render-utils.js?b780:95)
at Array.forEach (<anonymous>)
at rerenderMatchingSlotChildren (render-utils.js?b780:80)
at eval (aurelia-hot-module-reload.js?e5b8:215)
at Set.forEach (<anonymous>)
at HmrContext.eval (aurelia-hot-module-reload.js?e5b8:215)
Expected/desired behavior:
What is the expected behavior?
The HRM refreshes without crashing
What is the motivation / use case for changing the behavior?
Better support development cycle by removing the need to refresh a page after each update
I'm submitting a bug report
Please tell us about your environment:
Operating System: Windows 10
Node Version: 12.16.2
NPM Version: 6.14.4
JSPM OR Webpack AND Version webpack 4.44.2
Browser: all
Language: TypeScript 4.0.3
Current behavior: Updating a template or a view model which uses
ValidationController
causes HMR to crash withExpected/desired behavior:
What is the expected behavior? The HRM refreshes without crashing
What is the motivation / use case for changing the behavior? Better support development cycle by removing the need to refresh a page after each update