Skip to content

Problems with Node 18 #248

@lauhon

Description

@lauhon

In my Project I have a Dylib I am referencing via ffi-napi.

Using Node 16 everything worked fine, but when I try to run the same code with Node 18 I get following Error:

 Error: Dynamic Linking Error: 
dlopen(/Volumes/Apple/Workspace/superlight-app/apps/api/src/crypto-mpc-js/deps/MPCCrypto.dylib,0x0002): 
tried: '/Volumes/Apple/Workspace/superlight-app/apps/api/src/crypto-mpc-js/deps/MPCCrypto.dylib' 
(mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')),

'/System/Volumes/Preboot/Cryptexes/OS/Volumes/Apple/Workspace/superlight-app/apps/api/src/crypto-mpc-js/deps/MPCCrypto.dylib' (no such file), 
'/Volumes/Apple/Workspace/superlight-app/apps/api/src/crypto-mpc-js/deps/MPCCrypto.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))

Notice that the actual error seems to be an architecture mismatch. I tried to run the same thing with and without rosetta on a Mac M1, but the error stays.
Anyway its weird to me that it works without a problem on Node 16. Any help is highly appreciated :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions