question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Many "Circular source file mapping dependency" warnings on first build

See original GitHub issue

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • xi18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Yes

Yes, the previous version in which this bug was not present was: ....

10.0.2

Description

A clear and concise description of the problem...

After updating a very simple, almost stock 'ng new’d application to 10.0.2, upon first build (ng serve), lots of these circular dependency warnings appeared during the first pass (building for es2015)

Compiling @angular/core : es2015 as esm2015
Compiling @angular/cdk/keycodes : es2015 as esm2015
Compiling @angular/animations : es2015 as esm2015
Compiling @angular/compiler/testing : es2015 as esm2015
Warning: Unable to fully load /Users/johntsombakos/Dev/ng9-test/node_modules/@angular/cdk/keycodes/index.d.ts for source-map flattening: Circular source file mapping dependency: /Users/johntsombakos/Dev/ng9-test/node_modules/@angular/cdk/keycodes/index.d.ts.map -> /Users/johntsombakos/Dev/ng9-test/node_modules/@angular/cdk/keycodes/index.d.ts.map
Compiling @angular/animations/browser : es2015 as esm2015
Compiling @angular/cdk/observers : es2015 as esm2015
Compiling @angular/cdk/collections : es2015 as esm2015
Compiling @angular/common : es2015 as esm2015
Compiling @angular/core/testing : es2015 as esm2015
Warning: Unable to fully load /Users/johntsombakos/Dev/ng9-test/node_modules/@angular/cdk/collections/unique-selection-dispatcher.d.ts for source-map flattening: Circular source file mapping dependency: /Users/johntsombakos/Dev/ng9-test/node_modules/@angular/cdk/collections/unique-selection-dispatcher.d.ts.map -> /Users/johntsombakos/Dev/ng9-test/node_modules/@angular/cdk/collections/unique-selection-dispatcher.d.ts.map
Warning: Unable to fully load /Users/johntsombakos/Dev/ng9-test/node_modules/@angular/cdk/collections/index.d.ts for source-map flattening: Circular source file mapping dependency: /Users/johntsombakos/Dev/ng9-test/node_modules/@angular/cdk/collections/index.d.ts.map -> /Users/johntsombakos/Dev/ng9-test/node_modules/@angular/cdk/collections/index.d.ts.map

πŸ”¬ Minimal Reproduction

πŸ”₯ Exception or Error

Warning: Unable to fully load /Users/johntsombakos/Dev/ng9-test/node_modules/@angular/cdk/keycodes/index.d.ts for source-map flattening: Circular source file mapping dependency: /Users/johntsombakos/Dev/ng9-



🌍 Your Environment





     _                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / β–³ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/


Angular CLI: 10.0.2
Node: 14.5.0
OS: darwin x64

Angular: 10.0.3
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.1000.2
@angular-devkit/build-angular     0.1000.2
@angular-devkit/build-optimizer   0.1000.2
@angular-devkit/build-webpack     0.1000.2
@angular-devkit/core              10.0.2
@angular-devkit/schematics        10.0.2
@angular/cdk                      10.0.1
@angular/cli                      10.0.2
@angular/material                 10.0.1
@ngtools/webpack                  10.0.2
@schematics/angular               10.0.2
@schematics/update                0.1000.2
rxjs                              6.6.0
typescript                        3.9.6
webpack                           4.43.0

Anything else relevant?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
petebacondarwincommented, Jul 10, 2020

You must delete and reinstall node_modules

1reaction
GeorgeTailorcommented, Jul 10, 2020

@petebacondarwin do an update from 9 to 10, this is the case when this error pops up.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WARNING in Circular dependency detected - Angular Cli
I can have a two functions in one file, where each function can in certain circumstances call the other. This is also a...
Read more >
Circular dependency warnings after upgrading Angular CLI
I'm using Wijmo 5.20172.334 in an Angular project, and after upgrading my [url=https://github.com/angular/angular-cli]Angular CLI version,Β ...
Read more >
Detecting symbol dependency cycles in order to minimize ...
I'm interested in finding a way to warn, or lint, about dependency cycles in Swift code. I'm talking about symbol dependencies,Β ...
Read more >
How to fix nasty circular dependency issues once and for ...
First, this is ugly and doesn't scale. In a large code base, this will result in moving imports randomly around until stuff just...
Read more >
How to Analyze Circular Dependencies in ES6?
In ES6 modules can have a single default export as well as many more granular named ones. Each module can be thought of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found