Migration Issues Nest 4 -> 5 beta 2
I'm submitting a...
[ ] Regression
[x ] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.
Current behavior
We are currently building an application with V4 of the framework and I have started migrating to V5 beta 2.
-
The migration steps do not talk about using ExpressAdapter. This is needed when passing express instance.
-
The Express Adapter does not seem to be exported by @nestjs/core ... you have to do this import { ExpressAdapter } from '@nestjs/core/adapters/express-adapter';
-
Do we need to install Fastify? I am getting this error on all apps - Error: Cannot find module 'fastify-formbody'
-
Dynamic module reports the following error - Nest cannot export component / module that is not a part of the currently proccessed module (MongooseModule)
Our dynamic module looks like this
return { module: MongooseModule, components: [ mongooseProvider, ...schemaProviders, ...repositoryProviders ], exports: [ mongooseProvider, ...schemaProviders, ...repositoryProviders ] };
Expected behavior
-
The documentation would define this as a possible migration step.
-
The ExpressAdapter would be exported by @nestjs/core
-
App would start and would not have a dependency on fastify unless i used fastify adapter.
-
Dynamic module would work like v4.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Environment
Nest version: 5.0.0.beta-2
For Tooling issues:
- Node version: v9.3.0
- Platform: Mac (Docker)
Others:
Hey @thaoula
You need to update components to providers in your dynamic module metadata
1, 2, 3 will be fixed in v5.0.0-beta.3. I can't reproduce 4th issue. 🙁
All those issues should be fixed in v5.0.0-beta.3. Let me know if you face any issues
I have upgraded to the latest beta.
Working through some injections issues and nest-router.
Thanks very much!!
Get Outlook for iOShttps://aka.ms/o0ukef
From: Kamil Myśliwiec [email protected] Sent: Sunday, April 22, 2018 5:15:39 PM To: nestjs/nest Cc: Tarek Haoula; Mention Subject: Re: [nestjs/nest] Migration Issues Nest 4 -> 5 beta 2 (#575)
Closed #575https://github.com/nestjs/nest/issues/575.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/nestjs/nest/issues/575#event-1587795687, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AAVTzRLzAy_ZB-AOF-gtQqd9KOAAiHt0ks5trFhLgaJpZM4TbQy4.
Just to clarify:
- the 4th is happening when someone is exporting something that is not declaring as component.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.