diff --git a/packages/angular_devkit/build_webpack/src/utils.ts b/packages/angular_devkit/build_webpack/src/utils.ts index 4cf61464e1fa..5741d41412f4 100644 --- a/packages/angular_devkit/build_webpack/src/utils.ts +++ b/packages/angular_devkit/build_webpack/src/utils.ts @@ -25,7 +25,9 @@ export function getEmittedFiles(compilation: webpack.compilation.Compilation): E for (const chunk of compilation.chunks as webpack.compilation.Chunk[]) { for (const file of chunk.files as string[]) { files.push({ - id: chunk.id.toString(), + // The id is guaranteed to exist at this point in the compilation process + // tslint:disable-next-line: no-non-null-assertion + id: chunk.id!.toString(), name: chunk.name, file, extension: path.extname(file),