Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version issue #321

Closed
2 tasks done
Afnanksalal opened this issue Jun 5, 2022 · 0 comments
Closed
2 tasks done

version issue #321

Afnanksalal opened this issue Jun 5, 2022 · 0 comments

Comments

@Afnanksalal
Copy link

Prerequisites

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

Fastify version

3.x.x

Plugin version

No response

Node.js version

16.4

Operating system

Linux

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

21.04

Description

im getting a version error fastify-plugin: point-of-view - expected '4.x' fastify version, '3.29.0' is installed if im correct fastify v4 is not launched

Steps to Reproduce

const fastify = require("fastify")();

fastify.register(require("point-of-view"), {
engine: {
ejs: require("ejs"),
},
});

fastify.get("/", (req, reply) => {
reply.view("/templates/index.ejs", { text: "text" });
});

fastify.listen(3000, (err) => {
if (err) throw err;
console.log(server listening on ${fastify.server.address().port});
});

Expected Behavior

in the docs of point-of-view it is said to use fastify v2 or above so i think v3 should be working too

@Afnanksalal Afnanksalal changed the title verion issue version issue Jun 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant