Prerequisites
Fastify version
5.2.1
Plugin version
8.1.0
Node.js version
22.13.1
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
arch
Description
While importing the @fastify/secure-session plugin I get the following error:
Welcome to Node.js v22.13.1.
Type ".help" for more information.
> require("@fastify/secure-session")
Uncaught:
Error: /home/<path to project>/node_modules/sodium-native/prebuilds/linux-x64/sodium-native.node: cannot enable executable stack as shared object requires: Invalid argument
at Object..node (node:internal/modules/cjs/loader:1725:18)
at Module.load (node:internal/modules/cjs/loader:1313:32)
at Function._load (node:internal/modules/cjs/loader:1123:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
at Module.require (node:internal/modules/cjs/loader:1335:12)
at require (node:internal/modules/helpers:136:16)
at load (/home/<path to project>/node_modules/node-gyp-build/node-gyp-build.js:22:10)
at Object.<anonymous> (/home/<path to project>/node_modules/sodium-native/index.js:1:43) {
code: 'ERR_DLOPEN_FAILED'
}
I guess this is a sodium-native bug but this package is required by @fastify/secure-session.
Link to code that reproduces the bug
Expected Behavior
No response
Prerequisites
Fastify version
5.2.1
Plugin version
8.1.0
Node.js version
22.13.1
Operating system
Linux
Operating system version (i.e. 20.04, 11.3, 10)
arch
Description
While importing the
@fastify/secure-sessionplugin I get the following error:I guess this is a sodium-native bug but this package is required by
@fastify/secure-session.Link to code that reproduces the bug
Expected Behavior
No response