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')

Comments

  • xdxmxc
    xdxmxc Posts: 157

    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

  • sms92
    sms92 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

  • xdxmxc
    xdxmxc Posts: 157

    this should be addressed in the major update

Categories

Upcoming Training