fastify-error-page icon indicating copy to clipboard operation
fastify-error-page copied to clipboard

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

Open Fabryz opened this issue 2 years ago • 0 comments

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)

Fabryz avatar Nov 03 '22 22:11 Fabryz