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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initialization error in v3.0.0-rc.5 #2374
Comments
Hello! Thank you for reporting, I confirm it's a bug. |
If you return the app wrapped in an object from async function buildApp(opts) {
const app = fastify(opts)
// register plugins
return { app }
} I think the reason is that |
mcollina
added a commit
to fastify/avvio
that referenced
this issue
Jul 6, 2020
4 tasks
mcollina
added a commit
to fastify/avvio
that referenced
this issue
Jul 6, 2020
* Make .then() resolve to the server instance Fixes fastify/fastify#2374 * Comment * Added more tests and resolved typo * remove useless assertion
mcollina
added a commit
that referenced
this issue
Jul 6, 2020
mcollina
added a commit
that referenced
this issue
Jul 6, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
馃悰 Bug Report
When I use an asynchronous factory function to create a Fastify instance, the return value from the promise is always
undefined
. Btw, this problem is not present in the v2.15.1To Reproduce
I've created a repo (https://github.com/rqbazan/fastify-issue-async) to illustrate the issue, and compare it with v2
Expected behavior
Start the server without initialization problems, like in the v2
Your Environment
The text was updated successfully, but these errors were encountered: