Closed predragffwd closed 2 years ago
@predragffwd The module is not global and it could be that the connection dependency is not yet fulfilled when your module is loaded. Could you try injecting on a module level where you also register your user entity (I suppose that would be UserModule
in your case) and see if that works?
Hi @edgarmueller We have the same issue. This issue appeared on nestjs v8
_ _ _ ___ _____ _____ _ _____
| \ | | | | |_ |/ ___|/ __ \| | |_ _|
| \| | ___ ___ | |_ | |\ `--. | / \/| | | |
| . ` | / _ \/ __|| __| | | `--. \| | | | | |
| |\ || __/\__ \| |_ /\__/ //\__/ /| \__/\| |_____| |_
\_| \_/ \___||___/ \__|\____/ \____/ \____/\_____/\___/
[System Information]
OS Version : Linux 5.10
NodeJS Version : v14.15.3
YARN Version : 1.22.5
[Nest CLI]
Nest CLI Version : 7.6.0
[Nest Platform Information]
platform-express version : 8.2.3
platform-fastify version : 8.2.3
event-emitter version : 1.0.0
throttler version : 2.0.0
passport version : 8.0.1
swagger version : 5.1.5
typeorm version : 8.0.2
common version : 8.2.3
config version : 1.1.3
core version : 8.2.3
jwt version : 8.0.0
Done in 0.86s.
In addition, we register history module on module level
@na3r I'm able to reproduce the issue with Nest 8. We'll push an update/fix soon
We've updated the history module and released 2.0.0, see https://github.com/kittgen/kittgen-nestjs/releases/tag/nestjs-typeorm-history-v2.0.0 Could you give it a try?
Hi @edgarmueller Yes, it works now on nestjs v8 very well. Thank you
@na3r Great, happy to hear that, closing the issue then.
I'm getting issue when I try to create history for one of my entities. Issue that I'm getting is:
I registered module right under the TypeORM module,
And I added my history module like