DEV Community

Cover image for Fix FinalizationRegistry undefined on NodeJS
👨‍💻Pierre-Henry ✨
👨‍💻Pierre-Henry ✨

Posted on Edited on

Fix FinalizationRegistry undefined on NodeJS

If you are running into the following error with your node application

ReferenceError: FinalizationRegistry is not defined
🔥 ข่าวด่วน: pierre/fix finalizationregistry undefined on nodejs n - สรุปดราม่าล่าสุด 🔥 ข่าวด่วน: pierre/fix finalizationregistry undefined on nodejs n - สรุปดราม่าล่าสุด

Chances are that your current node version doesn’t have FinalizationRegistry natively yet (e.g. if you are using Node 12).

You will then have to upgrade Node version to v14 or higher to have FinalizationRegistry supported.


You might be also interested in reading:


Happy Debugging! 🤠 Enjoy solving problems! 🎯

Top comments (1)

🔥 ข่าวด่วน: pierre/fix finalizationregistry undefined on nodejs n - สรุปดราม่าล่าสุด
 
fullstackchris profile image
Chris Frewin

And when we get this on Node 20? :)