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

nestjs/typeorm rxjs issue after updating to version 8 #7467

Closed
andrei9669 opened this issue Jul 8, 2021 · 3 comments
Closed

nestjs/typeorm rxjs issue after updating to version 8 #7467

andrei9669 opened this issue Jul 8, 2021 · 3 comments
Labels
needs triage This issue has not been looked into

Comments

@andrei9669
Copy link

Bug Report

Current behavior

after I updated to nest version 8, I get the following error when starting the project

[Nest] 252  - 08.07.2021 09:29:09     LOG [NestFactory] Starting Nest application...
[Nest] 252  - 08.07.2021 09:29:09     LOG [InstanceLoader] RepositoryModule dependencies initialized +50ms
[Nest] 252  - 08.07.2021 09:29:09     LOG [InstanceLoader] TypeOrmModule dependencies initialized +1ms
[Nest] 252  - 08.07.2021 09:29:09   ERROR [ExceptionHandler] rxjs_1.lastValueFrom is not a function
TypeError: rxjs_1.lastValueFrom is not a function
    at Function.<anonymous> (F:\projects\IOT\kinema\backend\node_modules\@nestjs\typeorm\dist\typeorm-core.module.js:158:27)
    at Generator.next (<anonymous>)
    at F:\projects\IOT\kinema\backend\node_modules\@nestjs\typeorm\dist\typeorm-core.module.js:20:71
    at new Promise (<anonymous>)
    at __awaiter (F:\projects\IOT\kinema\backend\node_modules\@nestjs\typeorm\dist\typeorm-core.module.js:16:12)
    at Function.createConnectionFactory (F:\projects\IOT\kinema\backend\node_modules\@nestjs\typeorm\dist\typeorm-core.module.js:143:16)
    at Function.<anonymous> (F:\projects\IOT\kinema\backend\node_modules\@nestjs\typeorm\dist\typeorm-core.module.js:46:96)
    at Generator.next (<anonymous>)
    at F:\projects\IOT\kinema\backend\node_modules\@nestjs\typeorm\dist\typeorm-core.module.js:20:71
    at new Promise (<anonymous>)

Expected behavior

I expect it to work as it was in the previous version

Environment


Nest version: 8.0.0
 
For Tooling issues:
- Node version: 14.17.1
- Platform:  Windows

Others:
- npm version: 7.17.0
@andrei9669 andrei9669 added the needs triage This issue has not been looked into label Jul 8, 2021
@hussainwali74
Copy link

same issue.

@jmcdo29
Copy link
Member

jmcdo29 commented Jul 8, 2021

Make sure RxJS v7 is installed when you upgraded to nest v8

@kamilmysliwiec
Copy link
Member

#7468 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue has not been looked into
Projects
None yet
Development

No branches or pull requests

4 participants