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

Error: "done is not a function" #21

Open
davitykale opened this issue Oct 14, 2022 · 0 comments
Open

Error: "done is not a function" #21

davitykale opened this issue Oct 14, 2022 · 0 comments

Comments

@davitykale
Copy link

I am trying to use this plugin with fastify v4, ESM, and async/await.

My code looks something like this:

import fastifyGCloudTrace from 'fastify-gcloud-trace';

await fastify.register(fastifyGCloudTrace);

And then on every route, I get the following error:

"done is not a function"

Relevant dependencies

"dependencies": {
    "@fastify/auth": "^4.1.0",
    "@fastify/postgres": "^5.1.0",
    "fastify": "^4.8.1",
    "fastify-gcloud-trace": "^2.0.0",
    "fastify-openapi-docs": "^2.0.2",
  }
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