fastify / help

Need help with Fastify? File an Issue here.
https://www.fastify.io/
65 stars 8 forks source link

fastify-plugin: fastify-static - expected '3.x' fastify version, '4.26.0' is installed #991

Closed samprasdsouza closed 9 months ago

samprasdsouza commented 9 months ago

💬 I am getting this error mentioned below when trying to run "fastify start -l info src/app.js

FastifyError [Error]: fastify-plugin: fastify-static - expected '3.x' fastify version, '4.26.0' is installed

// example codes if any
   "@fastify/cors": "^9.0.1",
    "@fastify/postgres": "^5.2.2",
    "dayjs": "^1.11.10",
    "fastify": "^4.26.0",
    "fastify-auth0-verify": "^2.0.0",
    "fastify-axios": "^1.2.8",
    "fastify-oas": "^3.0.8",

Your Environment

mcollina commented 9 months ago

fastify-static is deprecated, use @fastify/static.

samprasdsouza commented 9 months ago

Thank you for the reply. ok, I am not directly using fastify-static. fastify-oas is installing the deprecated version of fastify-static in my package-lock.json . do, I need to update/inform maintainers of fastify-oas ?

mcollina commented 9 months ago

fastify-oas is not maintained anymore. Use @fastify/swagger.

samprasdsouza commented 9 months ago

ok, Thanks for the help