Skip to content

Conversation

@thebspin
Copy link
Contributor

I changed const fastify = require('fastify') in the examples to const fastify = require('fastify')() since that seems the (new?) and correct way to work.
If i don't use that i get an error saying TypeError: fastify.register is not a function

Checklist

I changed `const fastify = require('fastify')` in the examples to `const fastify = require('fastify')()` since that seems the (new?) and correct way to work.
If i don't use that i get an error saying `TypeError: fastify.register is not a function`
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, good spot!

@mcollina mcollina merged commit a0e37ba into fastify:master Sep 15, 2020
@thebspin
Copy link
Contributor Author

lgtm, good spot!

Thanks!

@thebspin thebspin deleted the patch-1 branch September 15, 2020 13:27
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

Successfully merging this pull request may close these issues.

2 participants