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
After building Next.js and deploying it either using AWS Cloudfront or just containerize the app with Docker and running it, the api the handles the hashing and verifying fails with the following error:
Error: Failed to load native binding
at Object.<anonymous> (/var/task/node_modules/.pnpm/@[email protected]/node_modules/@node-rs/argon2/index.js:359:11)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Module.load (node:internal/modules/cjs/loader:1203:32)
at Module._load (node:internal/modules/cjs/loader:1019:12)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at mod.require (/var/task/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/require-hook.js:65:28)
at require (node:internal/modules/helpers:177:18)
at 82406 (/var/task/.next/server/app/(main)/(auth)/signin/page.js:1:81)
at t (/var/task/.next/server/webpack-runtime.js:1:128) {
digest: '903678548',
[cause]: [
Error: Cannot find module './argon2.linux-arm64-gnu.node'
Require stack:
- /var/task/node_modules/.pnpm/@[email protected]/node_modules/@node-rs/argon2/index.js
- /var/task/.next/server/app/(main)/(auth)/signin/page.js
- /var/task/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/require.js
- /var/task/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/next-server.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
at /var/task/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/require-hook.js:55:36
at Module._load (node:internal/modules/cjs/loader:981:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at mod.require (/var/task/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/require-hook.js:65:28)
at require (node:internal/modules/helpers:177:18)
at requireNative (/var/task/node_modules/.pnpm/@[email protected]/node_modules/@node-rs/argon2/index.js:237:16)
at Object.<anonymous> (/var/task/node_modules/.pnpm/@[email protected]/node_modules/@node-rs/argon2/index.js:332:17)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [Array]
},
Error: Cannot find module '@node-rs/argon2-linux-arm64-gnu'
Require stack:
- /var/task/node_modules/.pnpm/@[email protected]/node_modules/@node-rs/argon2/index.js
- /var/task/.next/server/app/(main)/(auth)/signin/page.js
- /var/task/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/require.js
- /var/task/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/next-server.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
at /var/task/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/require-hook.js:55:36
at Module._load (node:internal/modules/cjs/loader:981:27)
at Module.require (node:internal/modules/cjs/loader:1231:19)
at mod.require (/var/task/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected]/node_modules/next/dist/server/require-hook.js:65:28)
at require (node:internal/modules/helpers:177:18)
at requireNative (/var/task/node_modules/.pnpm/@[email protected]/node_modules/@node-rs/argon2/index.js:242:16)
at Object.<anonymous> (/var/task/node_modules/.pnpm/@[email protected]/node_modules/@node-rs/argon2/index.js:332:17)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10) {
code: 'MODULE_NOT_FOUND',
requireStack: [Array]
}
]
}
Can't figure out why this is. Has there been any hacks or fixes for this issue?
The text was updated successfully, but these errors were encountered:
Here are some of the dependencies I use.
^14.2.4
,^1.8.3
18.17.1
and20.12.2
(tried both)Build / deploy using both AWS Cloudfront or Docker container
I switched over to using
node-rs/argon2
package since theoslo/password
package was causing dev error.If I use
node-rs/argon2
package:Error
After building Next.js and deploying it either using AWS Cloudfront or just containerize the app with Docker and running it, the api the handles the hashing and verifying fails with the following error:
Can't figure out why this is. Has there been any hacks or fixes for this issue?
The text was updated successfully, but these errors were encountered: