Skip to content
This repository has been archived by the owner on May 9, 2024. It is now read-only.

Circular Dependencies Race Condition #7

Open
NikkiDreams opened this issue Aug 3, 2016 · 0 comments
Open

Circular Dependencies Race Condition #7

NikkiDreams opened this issue Aug 3, 2016 · 0 comments

Comments

@NikkiDreams
Copy link

Hi,
I gave this a whirl yesterday and ran into a fun race condition.
Projects that are dependencies that have circular dependencies make for a really pretty messy situation. I have a main project with 8-10 local dependency projects to support it. (Not optimal and not my architecture, so I can't do much) Anyway, the joys of NPM Links showed it's darker side running this on my projects. Just wanted to point this out in the event one had an idea of a way to deal with deep circular dependency issues.

$ npm-link-shared ./some_modules ./my_project

./raptor-config has shared dependencies  [ './module-config-inc', './node-servicecore' ]
./module-config-inc has shared dependencies  [ './raptor-config' ]
./raptor-config has shared dependencies  [ './module-config-inc', './node-servicecore' ]
./module-config-inc has shared dependencies  [ './raptor-config' ]
util.js:429
    var simple = '\'' + JSON.stringify(value).replace(/^"|"$/g, '')
                                              ^

RangeError: Maximum call stack size exceeded
    at String.replace (native)
    at formatPrimitive (util.js:429:47)
    at formatValue (util.js:227:19)
    at formatProperty (util.js:581:15)
    at formatArray (util.js:474:19)
    at formatValue (util.js:410:16)
    at inspect (util.js:109:10)
    at exports.format (util.js:48:20)
    at Console.log (console.js:39:34)
    at link (/usr/local/lib/node_modules/npm-link-shared/lib/link.js:139:15)
Repository owner deleted a comment Jan 30, 2023
Repository owner deleted a comment Jan 30, 2023
Repository owner deleted a comment Jan 30, 2023
Repository owner deleted a comment Jan 30, 2023
Repository owner deleted a comment Jan 30, 2023
Repository owner deleted a comment Jan 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant