dream2nix
                                
                                 dream2nix copied to clipboard
                                
                                    dream2nix copied to clipboard
                            
                            
                            
                        `error: stack overflow (possible infinite recursion)` (nodejs)
I have a monorepo, with a toplevel package.json defining workspaces and packages/*/package.json 5 times over, defining 5 yarn packages, but there's one yarn.lock at the top level.
To reproduce my error, try
git clone git@github:quantified-uncertainty/squiggle.git
cd squiggle
mv .gitignore .squiggle.gitignore
nix flake init -t github:nix-community/dream2nix#simple
nix flake show
update: generating package-lock.json with npm install --legacy-peer-deps fixes it. The problem seems to be specific to yarn.lock.
update: some pushing the flake around subdirectories in the monorepo revealed a stack trace! and it turns out to bottom out at the @stdlib/assert library
removing the yarn.lock and using .#resolveImpure to create a dream-lock.json file seems to fix the issue.
Still we should find our what is the root of this issue. Sadly,  stack overflow (possible infinite recursion) errors seem to be hard to debug.