DEV Community

Cover image for Fix FinalizationRegistry undefined on NodeJS
Pierre-Henry Soria ✨
Pierre-Henry Soria ✨

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
Enter fullscreen mode Exit fullscreen mode

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.

Top comments (0)