Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Fastify v5 #366

Closed
kou029w opened this issue Oct 1, 2024 · 1 comment · Fixed by #367
Closed

Support Fastify v5 #366

kou029w opened this issue Oct 1, 2024 · 1 comment · Fixed by #367

Comments

@kou029w
Copy link

kou029w commented Oct 1, 2024

When installing fastify v5, the backend immediately crashes with the following error:

FastifyError [Error]: fastify-plugin: fastify-auth0-verify - expected '4.x' fastify version, '5.0.0' is installed
    at Object.checkVersion (/home/ubuntu/fastify-auth0/node_modules/fastify/lib/pluginUtils.js:125:11)
    at Object.registerPlugin (/home/ubuntu/fastify-auth0/node_modules/fastify/lib/pluginUtils.js:148:16)
    at Boot.override (/home/ubuntu/fastify-auth0/node_modules/fastify/lib/pluginOverride.js:28:57)
    at Boot._loadPlugin (/home/ubuntu/fastify-auth0/node_modules/avvio/boot.js:425:25)
    at process.processTicksAndRejections (node:internal/process/task_queues:90:21) {
  code: 'FST_ERR_PLUGIN_VERSION_MISMATCH',
  statusCode: 500
}

"fastify": "^4.0.2",

module.exports = fastifyPlugin(fastifyAuth0Verify, { name: 'fastify-auth0-verify', fastify: '4.x' })

Copy link
Contributor

🎉 This issue has been resolved in version 3.0.0 🎉

The release is available on:

Your optic bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant