Fatal error: Protocol error (Runtime.callFunctionOn): Object reference chain is too long

i was trying to set up the dev environement for p5.js
i followed the instructions on this site https://p5js.org/contributor-docs/#/

after navigating into the p5.js folder ,npm ci worked fine

but when i tried to run the command
npm run grunt
i get this error message


kindly help me in sorting this issue tried redoing it a bunch of times to no avail

[i’m running it on pop-os (linux) node v15.2.0 npm v7.0.8 ]

Hi @ankit1029,
I followed the instructions you mentionned and faced the same issue as you.
It seems to be an issue from a package of puppeeter as mentionned in the thread here : https://github.com/puppeteer/puppeteer/issues/2746.

But as far as I know this kind of issues (caused generally because a catch() is missing in a promise chain, it isn’t a blocking error. On my side, it could pursue the script until the end actually.
But I remember that nodejs has been notifying for awhile that an unhandled rejection may become abort the script in the future, it is maybe true today.

Which npm version do you have ?

1 Like

@Pr0tonX i see i’m using npm v7.0.8 , is there some particular npm or node version for which this works properly? since in the p5js webeditor project they mentioned a node version but no such info was mentioned for p5.js

Sorry for the delay.

Actually you use a really old one ! They are currently up to the 14 or 15 ; you should update your package manager !
I am currently working with the 13 and it isn’t a blocking issue, so I don’t since which version it is, but in any case, you shouldn’t keep an so old version at least for security reasons, and you might have some troubles with other packages than p5

I could at least confirm that there is no issue since the 11, because I never see this error when I used p5 with this version

@GoToLoop you found the ticket I opened to notice it to the mainteners :slight_smile: