diff --git a/packages/angular_devkit/build_angular/src/webpack/plugins/hmr/hmr-accept.ts b/packages/angular_devkit/build_angular/src/webpack/plugins/hmr/hmr-accept.ts index 8c05f6911cc8..ef0e5a7cd162 100644 --- a/packages/angular_devkit/build_angular/src/webpack/plugins/hmr/hmr-accept.ts +++ b/packages/angular_devkit/build_angular/src/webpack/plugins/hmr/hmr-accept.ts @@ -211,6 +211,10 @@ function restoreFormValues(oldInputs: any[], oldOptions: any[]): void { case 'week': newElement.value = oldElement.value; break; + case 'file': + // Ignored due: Uncaught DOMException: Failed to set the 'value' property on 'HTMLInputElement': + // This input element accepts a filename, which may only be programmatically set to the empty string. + break; default: console.warn('[NG HMR] Unknown input type ' + oldElement.type + '.'); continue;