dream2nix icon indicating copy to clipboard operation
dream2nix copied to clipboard

`error: stack overflow (possible infinite recursion)` (nodejs)

Open quinn-dougherty opened this issue 1 year ago • 2 comments

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

quinn-dougherty avatar Aug 30 '22 06:08 quinn-dougherty

update: generating package-lock.json with npm install --legacy-peer-deps fixes it. The problem seems to be specific to yarn.lock.

quinn-dougherty avatar Aug 30 '22 09:08 quinn-dougherty

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

quinn-dougherty avatar Aug 30 '22 10:08 quinn-dougherty