Data: [email protected]: circular dependency

Created on 13 Dec 2018  路  9Comments  路  Source: emberjs/data

With [email protected] I get a "circular dependency"-Warning/Error in console when running "ember serve".

Circular dependency: ..\..\..\..\Users\username\TEMP\broccoli-9436umqGtnnqeeVy\cache-200-rollup\build\-private\system\model\model.js -> ..\..\..\..\Users\username\TEMP\broccoli-9436umqGtnnqeeVy\cache-200-rollup\build\-private\system\model\internal-model.js -> ..\..\..\..\Users\username\TEMP\broccoli-9436umqGtnnqeeVy\cache-200-rollup\build\-private\system\references.js -> ..\..\..\..\Users\username\TEMP\broccoli-9436umqGtnnqeeVy\cache-200-rollup\build\-private\system\references\belongs-to.js -> ..\..\..\..\Users\username\TEMP\broccoli-9436umqGtnnqeeVy\cache-200-rollup\build\-private\system\model\model.js

Without temporary directories the circular reference is:

-private\system\model\model.js ->
-private\system\model\internal-model.js ->
-private\system\references.js ->
-private\system\references\belongs-to.js ->
-private\system\model\model.js 

Beside this, the process starts normally. However, the message is irritating.

I'm working on windows with [email protected]. [email protected] does not show this behavior.

Most helpful comment

This warning printed here is noisy but not problematic. We will try to silence it going forward, but it is the unfortunate artifact of how importing classes for Typescript conflicts with rollup's circular dependency import checks.

All 9 comments

I'm facing a similar issue an exact similar issue as well,
../../../../../../var/folders/gp/51prsfcx5gd_cvhxzd6jfl7w0000gn/T/broccoli-6168O1WB8SRcakja/cache-159-rollup/build/-private/system/model/model.js ->

../../../../../../var/folders/gp/51prsfcx5gd_cvhxzd6jfl7w0000gn/T/broccoli-6168O1WB8SRcakja/cache-159-rollup/build/-private/system/model/internal-model.js ->

../../../../../../var/folders/gp/51prsfcx5gd_cvhxzd6jfl7w0000gn/T/broccoli-6168O1WB8SRcakja/cache-159-rollup/build/-private/system/references.js ->

../../../../../../var/folders/gp/51prsfcx5gd_cvhxzd6jfl7w0000gn/T/broccoli-6168O1WB8SRcakja/cache-159-rollup/build/-private/system/references/belongs-to.js ->

../../../../../../var/folders/gp/51prsfcx5gd_cvhxzd6jfl7w0000gn/T/broccoli-6168O1WB8SRcakja/cache-159-rollup/build/-private/system/model/model.js

This warning printed here is noisy but not problematic. We will try to silence it going forward, but it is the unfortunate artifact of how importing classes for Typescript conflicts with rollup's circular dependency import checks.

Seeing this as well on a new Ember 3.6 app. No issues with Ember Data's functionality, only issue is the warning message!

seeing similar issue when i run ember serve
ember-cli - 3.7.1
ember-data - 3.7.0
ember-cli-babel - 7.4.0

Circular dependency: ../../../../../var/folders/5l/n69gw2bx779gl145qqxyq17c0000gp/T/broccoli-131479udYxjAGQvZQ/cache-229-rollup/build/-private/system/model/model.js -> ../../../../../var/folders/5l/n69gw2bx779gl145qqxyq17c0000gp/T/broccoli-131479udYxjAGQvZQ/cache-229-rollup/build/-private/system/model/internal-model.js -> ../../../../../var/folders/5l/n69gw2bx779gl145qqxyq17c0000gp/T/broccoli-131479udYxjAGQvZQ/cache-229-rollup/build/-private/system/references.js -> ../../../../../var/folders/5l/n69gw2bx779gl145qqxyq17c0000gp/T/broccoli-131479udYxjAGQvZQ/cache-229-rollup/build/-private/system/references/belongs-to.js -> ../../../../../var/folders/5l/n69gw2bx779gl145qqxyq17c0000gp/T/broccoli-131479udYxjAGQvZQ/cache-229-rollup/build/-private/system/model/model.js
Build Error (broccoli-persistent-filter:Babel > [Babel: web-client]) in web-client/adapters/application.js

[BABEL] /Users/rinold/mb_project/workspace/web_client/web-client/adapters/application.js: Invalid Option: compact is not a valid top-level option.
        Maybe you meant to use 'spec'? (While processing: "/Users/rinold/mb_project/workspace/web_client/node_modules/@babel/preset-env/lib/index.js")


Stack Trace and Error Report: /var/folders/5l/n69gw2bx779gl145qqxyq17c0000gp/T/error.dump.7477b08fd939ca44312846ff8e2c93f8.log
file changed adapters/application.js

@rinoldsimon it looks like you do have the same warning but it is a different issue that is breaking your build 馃 I think you should open a new issue (potentially on the ember-cli repo) or ask for some help in #help on the Ember Community Discord 馃憤

It looks like there is a Babel config issue in your case that may be caused by a version inconsistency in something to do with Babel 馃

@mansona the build was breaking due to compact: false in my ember-cli-build.js. Removing those lines fixed my issue.

But still, circular dependency warning persists

Same issue.

system/model/model.js ->
system/model/internal-model.js -> 
system/references.js -> 
system/references/belongs-to.js -> 
system/model/model.js

I've been trying to get rid of it by commenting out more and more code, thinking this caused fastboot not to work. But I guess that's a totally different issue.

@Redsandro this is not an error and is a misguided warning that we've silenced in more recent builds and releases

@runspired thank you for clarifying.

Meanwhile, I figured out what the problem with FastBoot was. It was an unclear error message. Now isn't that ironic? :robot:

https://github.com/ember-fastboot/ember-cli-fastboot/issues/622

(The issue that google suggested was even created by myself last year. Ironiception! :fireworks: )

Was this page helpful?
0 / 5 - 0 ratings

Related issues

toobulkeh picture toobulkeh  路  3Comments

NullVoxPopuli picture NullVoxPopuli  路  5Comments

kennethlarsen picture kennethlarsen  路  3Comments

Robdel12 picture Robdel12  路  5Comments

xomaczar picture xomaczar  路  3Comments