-
-
Notifications
You must be signed in to change notification settings - Fork 300
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
JavaScript heap out of memory with an unreleased npm package #621
Comments
That is a very weird error, I have not seen this anywhere I've used I tried multiple times releasing new packages with np because of #613 but this seems to be something else completely. The V8 engine running out of memory for a package might be because of package size or some other weird behaviour with np. We'll keep this ticket open to see if the community runs into this anywhere. |
Do it wasn't a large package, unless it was somehow including node modules which is very strange behaviour. I noticed something after I posted this bug: it wasn't just unreleased, I had also forgotten to create a remote repo |
This would definitely cause |
So I just came across this again with a repo that I literally just released earlier today, so the root cause isn't the missing remote π€ New stack trace:
|
I just found the issue! I debugged using The issue is that I have a folder locally that is a github cache for auto-changelog. This file is ignored with The first thing in the stacktrace that is your code is this:
and allowList has a length of 41147 π± |
In fact I needed to delete node_modules as well before this would work π |
Just a bump on this issue π Does anyone have any pointers on how I should proceed with a fix for this? I don't know too much about the internals of this so I got a bit stuck after investigating the "cause". Any pointers or suggestions would be very much appreciated as I'm still hitting this nearly every time I'm running |
sorry for the delayed response @mansona but I still am unable to reproduce this error on my local, it will be very helpful if you can provide a reproduction repo for the same. |
I have a feeling that #633 might solve this particular issue π€ not exactly sure but it seems like it might be related I'll keep y'all posted to see if I come across it again since that has been released π |
Closing as #633 likely fixed it |
Description
I just tried to use
np
to release a package that hadn't been released yet but I got aJavaScript heap out of memory
error with a very fun looking stack trace πSteps to reproduce
I'm pretty sure the only special thing that I was doing was trying to release a package that hadn't been released yet π€ I released using
npm publish
and then rannp
again and it gave me theNo commits found since previous release, continue?
warning so I figured it was back workingEnvironment
np - latest (I re-installed after i saw the error first and it still happened)
Node.js - I started on node 12 but then I installed a fresh Node 14 system-wide v14.17.6
npm - 7.22.0
Git -
git version 2.30.1 (Apple Git-130)
OS - macOs 11.5.2 (20G95)
The text was updated successfully, but these errors were encountered: