aurelia / hot-module-reload

Core functionality for Aurelia's hot-module-reolad (HMR) capabilities, which is shared by all loaders and tools.
MIT License
25 stars 8 forks source link

Error on validated form reload #21

Open MaximBalaganskiy opened 3 years ago

MaximBalaganskiy commented 3 years ago

I'm submitting a bug report

Please tell us about your environment:

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: