Skip to content

The latest minor version update broke ffi-napi compatibility #52240

@lingyuj

Description

@lingyuj

The widely used ffi-napi module won't build with the latest minor update across almost all version.
It can build with ~ 20.11.1, ~ 21.5.0
But failed with 20.12.0, 21.6.0 ~

The error log is :
npm ERR! /home/mark/Projects/eudiw-app/node_modules/node-addon-api/napi-inl.h:63:47: error: invalid conversion from ‘napi_finalize’ {aka ‘void ()(napi_env__, void*, void*)’} to ‘node_api_nogc_finalize’ {aka ‘void ()(const napi_env__, void*, void*)’} [-fpermissive]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions