Welcome to the Linux Foundation Forum!

ch-4: update content related to deprecated fastify-static

https://www.npmjs.com/package/fastify-static - this seems to be deprecated and therefore corresponding updates have to be done, like:
const fastifyStatic = dev && require('@fastify/static') - instead of require('fastify-static')

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Comments

  • Posts: 160

    eprecation does not mean its broken. It's a forewarning.

  • Thanks for your answer! It was breaking though. I couldn't get things up and running with the deprecated packages

  • Posts: 5

    I ran into the same issue. There is version miss match error. Updating fastify to version ^3.x in package.json worked for me. However, I am not sure if there is a way to use "@fastify/static": "^5.0.0" with fastify version ^4.x

  • Posts: 160

    this should be addressed in the major update

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training