DEV Community

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

Posted on • Edited on

1 1

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)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more