frontend-collective / react-sortable-tree

Drag-and-drop sortable component for nested data and hierarchies
https://frontend-collective.github.io/react-sortable-tree/
MIT License
4.91k stars 902 forks source link

yarn pnp fails with JavaScript heap out of memory #538

Open ijharulislam opened 5 years ago

ijharulislam commented 5 years ago

I am trying to use yarn --pnp with react-sortable-tree. It gets stuck for a long time. After that It throws this error: FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory

any idea, how to fix it.

karlhorky commented 4 years ago

Seems like this is an issue caused by the dependency tree. @arcanis in https://github.com/yarnpkg/berry/pull/783:

react-sortable-tree has a dependency on itself

Original issue: https://github.com/yarnpkg/berry/issues/776

karlhorky commented 4 years ago

@wuweiweiwu @fritz-c would you be willing to fix the dependency issues @arcanis brought up?

arcanis commented 4 years ago

Of note, it seems like it's been fixed in master already (https://github.com/frontend-collective/react-sortable-tree/commit/8e7f83dc483c4697edd5ae29080316cf68de248a#diff-b9cfc7f2cdf78a7f4b91a753d10865a2L76) but hasn't been released yet.