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

Error: fastify-plugin - expected '<2.12.0' fastify version, '2.12.0' is installed #22

Closed
gblok opened this issue Feb 19, 2020 · 3 comments

Comments

@gblok
Copy link

gblok commented Feb 19, 2020

module.exports = fp(
  async (fastify, opts) => {
    return openapi(fastify, opts);
  },
  {
    fastify: '<2.12.0',
    name: 'fastify-oas',
  },
);

... correct plz

@SkeLLLa
Copy link
Owner

SkeLLLa commented Feb 19, 2020

@gblok That's expected. See https://github.com/SkeLLLa/fastify-oas#fastify-support notice.

TLDR: fastify 2.12 has regression that breaks this extension.

That's done so to prevent existing users from sudden updates with npm update, cause breaking changes were introduced in minor version.

See fastify/fastify#2104 for details.

@SkeLLLa SkeLLLa pinned this issue Feb 19, 2020
@SkeLLLa
Copy link
Owner

SkeLLLa commented Feb 24, 2020

@gblok Issue is fixed in Fastify.

fastify/fastify#2108

@SkeLLLa SkeLLLa closed this as completed Feb 24, 2020
@gblok
Copy link
Author

gblok commented May 14, 2022

thx )

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

No branches or pull requests

2 participants