Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cyclic dependencies causes maximum call-stack #12

Closed
pi0 opened this issue Dec 16, 2020 · 1 comment
Closed

Cyclic dependencies causes maximum call-stack #12

pi0 opened this issue Dec 16, 2020 · 1 comment

Comments

@pi0
Copy link
Member

pi0 commented Dec 16, 2020

We need to preserve pending requires in a stack to resolve A -> B -> A conditions

@pi0 pi0 closed this as completed in 06c687f Dec 22, 2020
@m0dch3n
Copy link

m0dch3n commented Oct 19, 2022

@pi0 I think still have this issue. The jiti version in my node_modules is 1.15.0

[user@devserver-app-dev app (develop )]$ npm i
npm ERR! code 1
npm ERR! path /home/user/workspace/app/packages/app/web
npm ERR! command failed
npm ERR! command sh -c -- nuxt prepare
npm ERR! Nuxi 3.0.0-rc.10
npm ERR! ERROR  Maximum call stack size exceeded
npm ERR! 
npm ERR!   at /home/user/workspace/app/node_modules/luxon/src/zones/systemZone.js:2:13
npm ERR!   at jiti (/home/user/workspace/app/node_modules/jiti/dist/jiti.js:1:247497)
npm ERR!   at /home/user/workspace/app/node_modules/luxon/src/settings.js:1:204
npm ERR!   at jiti (/home/user/workspace/app/node_modules/jiti/dist/jiti.js:1:247497)
npm ERR!   at /home/user/workspace/app/node_modules/luxon/src/impl/locale.js:3:40
npm ERR!   at jiti (/home/user/workspace/app/node_modules/jiti/dist/jiti.js:1:247497)
npm ERR!   at /home/user/workspace/app/node_modules/luxon/src/settings.js:3:38
npm ERR!   at jiti (/home/user/workspace/app/node_modules/jiti/dist/jiti.js:1:247497)
npm ERR!   at /home/user/workspace/app/node_modules/luxon/src/impl/locale.js:3:40
npm ERR!   at jiti (/home/user/workspace/app/node_modules/jiti/dist/jiti.js:1:247497)

Unfortunately a date library I'm using has these cyclic dependencies: moment/luxon#193

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants