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

rxjs_1. lastValueFrom is not a function #7468

Closed
hussainwali74 opened this issue Jul 8, 2021 · 2 comments
Closed

rxjs_1. lastValueFrom is not a function #7468

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

Comments

@hussainwali74
Copy link

hussainwali74 commented Jul 8, 2021

Bug Report

Current behavior

I have installed fresh copy of nestjs trying to connect to mysql db

this is imports array in app.module.ts :

  imports: [
    ConfigModule.forRoot({ isGlobal: true }), //.env config
    TypeOrmModule.forRoot({
      type: 'mariadb',
      host: '127.0.0.1',
      port: 3306,
      username: ConfigService.getENV().TYPEORM_USER_NAME,
      password: ConfigService.getENV().TYPEORM_DB_PASSWORD,
      database: ConfigService.getENV().TYPEORM_DB_NAME,
      autoLoadEntities: true,
      // synchronize: true,
      // logging: true,
    }),
  ],

My package.json:

image

Possible Solution

I saw that this issue was already closed here:

nestjs/typeorm#25

but that issue is old and didn't work for me.

@hussainwali74 hussainwali74 added the needs triage This issue has not been looked into label Jul 8, 2021
@kamilmysliwiec
Copy link
Member

Make sure your packages are in sync (@nestjs/common, @nestjs/core, @nestjs/typeorm all should be at version 7 or 8). If you're on v7, install rxjs v6. If you're on v8, install rxjs v7.

Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.

@rene-ponce
Copy link

Make sure your packages are in sync (@nestjs/common, @nestjs/core, @nestjs/typeorm all should be at version 7 or 8). If you're on v7, install rxjs v6. If you're on v8, install rxjs v7.

Please, use our Discord channel (support) for such questions. We are using GitHub to track bugs, feature requests, and potential improvements.

thanks, it worked for me

@nestjs nestjs locked and limited conversation to collaborators Jul 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs triage This issue has not been looked into
Projects
None yet
Development

No branches or pull requests

3 participants