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 (1)

Collapse
 
fullstackchris profile image
Chris Frewin

And when we get this on Node 20? :)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs