You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched existing issues to ensure the bug has not already been reported
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
The text was updated successfully, but these errors were encountered:
Not sure how you want to deal with it, from my side I am ok with the work around of overwriting.
TBH I would not leave it though at the current expression ^4.0.10. Either it should be fixed for the lower version as in the PR or if there is a newer version that fixes it I would upgrade the dependency to be greater or equal to that version.
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: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
The text was updated successfully, but these errors were encountered: