Skip to content

fastify-error-page - expected '^3.x.x' fastify version, '4.9.2' is installed #18

@Fabryz

Description

@Fabryz

I have just installed fastify v4.9.2, I followed the first tutorial and was now trying some plugins.
I installed fastify-error-page v4.0.0, now when I launch my server I get this error:

[nodemon] starting node server.js
/test-fastify/node_modules/fastify-error-page/node_modules/fastify-plugin/plugin.js:121
    throw new Error(fastify-plugin: ${pluginName} - expected '${version}' fastify version, '${fastifyVersion}' is installed)
    ^

Error: fastify-plugin: fastify-error-page - expected '^3.x.x' fastify version, '4.9.2' is installed
    at checkVersion (/test-fastify/node_modules/fastify-error-page/node_modules/fastify-plugin/plugin.js:121:11)
    at plugin (/test-fastify/node_modules/fastify-error-page/node_modules/fastify-plugin/plugin.js:42:5)
    at Object.<anonymous> (/test-fastify/node_modules/fastify-error-page/index.js:22:18)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/test-fastify/server.js:6:22)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions