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.

Error in circular dependency detection ?

See original GitHub issue

Prerequisites

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • I am running the latest version
  • I checked the documentation (nx.dev) and found no answer
  • I checked to make sure that this issue has not already been filed
  • I’m reporting the issue to the correct repository (not related to React, Angular or any dependency)

Expected Behavior

External packages with names that starts like an library name in the nx workspace should not be treated like the this lib.

Current Behavior

I have four libs in my monorepo: common, desktop, concept and basiskomponenten. In this monorepo I’m consuming a library “@inova/desktop-api-service” (from a private npm registry). Since I updated from @nrwl/workspace@8.12.11 to the latest I have lint errors where I’m importing objects from “@inova/desktop-api-service”.

Failure Information (for bugs)

image

ERROR: C:/.../InovaFrontend/libs/common/src/lib/app-context/culture-context/culture-context.service.ts[10, 1]: Circular dependency between "common" and "desktop" detected

nx.json: image

lint.json: image

tsconfig.json: image

Context

Please provide any relevant information about your setup:

>  NX  Report complete - copy this into the issue template

  @nrwl/angular : 9.2.4
  @nrwl/cli : 9.2.4
  @nrwl/cypress : 9.2.4
  @nrwl/eslint-plugin-nx : Not Found
  @nrwl/express : Not Found
  @nrwl/jest : 9.2.4
  @nrwl/linter : Not Found
  @nrwl/nest : Not Found
  @nrwl/next : Not Found
  @nrwl/node : Not Found
  @nrwl/react : Not Found
  @nrwl/schematics : Not Found
  @nrwl/tao : 9.2.4
  @nrwl/web : Not Found
  @nrwl/workspace : 9.2.4
  typescript : 3.8.3

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
FrozenPandazcommented, Oct 23, 2020

Thanks for the unit test case, that was super for fixing the issue!

0reactions
admir86commented, Jul 9, 2020

@FrozenPandaz is the unit test as repro not sufficient? do you need something more? or can you remove the “blocked: repro needed” label? 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Google Sheets Circular Dependency Detected Error [Easy Fix]
You can face the error “Circular dependency detected” when using virtually any formula. When you encounter this error, the formula used usually exists...
Read more >
Circular Dependency Detected Error in Google Sheets ...
The circular dependency detected errors in Google Sheets is due to the formula being within the range you're referring to or because the ......
Read more >
NG0200: Circular dependency in DI detected while ... - Angular
Break this loop (or circle) of dependency to resolve this error. This most commonly means removing or refactoring the dependencies to not be...
Read more >
Google Sheet Circular Dependency Issue With If Function
When you see the circular dependency detected error displayed in your Google spreadsheet, this means that your formula is referring to a ...
Read more >
Avoiding circular dependency errors in DAX - SQLBI
A circular dependency is detected whenever two objects reference each other, in such a way that Power BI cannot process the objects.
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