Upgrading Unleash v6: Remove Passport libs from the official open source Docker distribution
Closed this issue · 1 comments
GurayCetin commented
I have followed documentation for index.js to authenticate with google-auth-hook but in new version 6; passport package is not used anymore and throwing Error: Cannot find module '@passport-next/passport
and i have tried to community images that is not worked either.
I have also checked the documentation to follow for v6 recommendation to use instead of passport libs but there is no any guidance there. Could you please suggest me how to proceed with new version?
Logs, error output, etc.
node:internal/modules/cjs/loader:1148
throw err;
^
Error: Cannot find module '@passport-next/passport'
Require stack:
- /unleash/index.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Module._load (node:internal/modules/cjs/loader:986:27)
at Module.require (node:internal/modules/cjs/loader:1233:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/unleash/index.js:3:18)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/unleash/index.js' ]
}
Node.js v20.14.0
GurayCetin commented
issue was related to using "passport-next/passport" which is indicated in example, instead of this using passport lib resolved the issue with openid community image.