Circular source file mapping dependency on extract-i18n

🐞 Bug report

Command (mark with an x)

  • extract-i18n

Is this a regression?

Yes, the previous version in which this bug was not present was: 10.x (using ng xi18n --ivy).

Description

Running ng extract-i18n warns about Circular source file mapping dependency (full output below) when the project reference Kendo UI for Angular packages. The packages do not contain source maps.

The warning is not present when runing ng serve and ng build in development or production mode.

🔬 Minimal Reproduction

  1. Clone https://github.com/tsvetomir/ng11-sourcemaps
  2. Run npm install
  3. Run ng extract-i18n

🔥 Exception or Error

Warning: ./node_modules/@progress/kendo-angular-common/__ivy_ngcc__/dist/fesm5/index.js
Module Warning (from ./node_modules/@angular-devkit/build-angular/src/extract-i18n/ivy-extract-loader.js):
(Emitted value instead of an instance of Error) Unable to fully load /tmp/ng11-sourcemaps/node_modules/@progress/kendo-angular-common/__ivy_ngcc__/dist/fesm5/index.js for source-map flattening: Circular source file mapping dependency: /tmp/ng11-sourcemaps/node_modules/@progress/kendo-angular-common/__ivy_ngcc__/dist/fesm5/index.js.map -> /tmp/ng11-sourcemaps/node_modules/@progress/kendo-angular-common/__ivy_ngcc__/dist/fesm5/index.js.map

Warning: ./node_modules/@progress/kendo-angular-l10n/__ivy_ngcc__/dist/fesm5/index.js
Module Warning (from ./node_modules/@angular-devkit/build-angular/src/extract-i18n/ivy-extract-loader.js):
(Emitted value instead of an instance of Error) Unable to fully load /tmp/ng11-sourcemaps/node_modules/@progress/kendo-angular-l10n/__ivy_ngcc__/dist/fesm5/index.js for source-map flattening: Circular source file mapping dependency: /tmp/ng11-sourcemaps/node_modules/@progress/kendo-angular-l10n/__ivy_ngcc__/dist/fesm5/index.js.map -> /tmp/ng11-sourcemaps/node_modules/@progress/kendo-angular-l10n/__ivy_ngcc__/dist/fesm5/index.js.map

Warning: ./node_modules/@progress/kendo-angular-upload/__ivy_ngcc__/dist/fesm5/index.js
Module Warning (from ./node_modules/@angular-devkit/build-angular/src/extract-i18n/ivy-extract-loader.js):
(Emitted value instead of an instance of Error) Unable to fully load /tmp/ng11-sourcemaps/node_modules/@progress/kendo-angular-upload/__ivy_ngcc__/dist/fesm5/index.js for source-map flattening: Circular source file mapping dependency: /tmp/ng11-sourcemaps/node_modules/@progress/kendo-angular-upload/__ivy_ngcc__/dist/fesm5/index.js.map -> /tmp/ng11-sourcemaps/node_modules/@progress/kendo-angular-upload/__ivy_ngcc__/dist/fesm5/index.js.map

🌍 Your Environment

Angular CLI: 11.0.6
Node: 10.23.1
OS: linux x64

Angular: 11.0.8
... animations, common, compiler, compiler-cli, core, forms
... localize, platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1100.6
@angular-devkit/build-angular   0.1100.6
@angular-devkit/core            11.0.6
@angular-devkit/schematics      11.0.6
@angular/cli                    11.0.6
@schematics/angular             11.0.6
@schematics/update              0.1100.6
rxjs                            6.6.3
typescript                      4.0.5

Anything else relevant?
Possibly related:

1 possible answer(s) on “Circular source file mapping dependency on extract-i18n

  1. I think this is likely to be an issue with either ngcc or localize (or both) which are part of the main repository. So transferring this issue there.