Skip to content

Why @fastify-static@6.11.1 bind fastify@4.23.0 rather than 4.x #411

@AprilNEA

Description

@AprilNEA

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the bug has not already been reported

Fastify version

4.22.2

Plugin version

6.11.1

Node.js version

18

Operating system

macOS

Operating system version (i.e. 20.04, 11.3, 10)

12.6.5

Description

FastifyError: fastify-plugin: @fastify/static - expected '^4.23.0' fastify version, '4.22.2' is installed

fastify-static/index.js

Lines 554 to 556 in 2471a4c

module.exports = fp(fastifyStatic, {
fastify: '^4.23.0',
name: '@fastify/static'

Why is the only fastify version specified in version 6.11.1 4.23.0 instead of 4.x, which prevents me from running it compatibly.

Steps to Reproduce

install @fastify/static@6.11.1 with fastify@4.22.2

Expected Behavior

@fastify/static@6.11.1 can be used in fastify@4.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions