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 #939

Closed
joe-aloia opened this issue Jul 13, 2021 · 1 comment
Closed

rxjs_1.lastValueFrom is not a function #939

joe-aloia opened this issue Jul 13, 2021 · 1 comment

Comments

@joe-aloia
Copy link

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

installed @nestjs/typeorm using Postgres
added connection string forRoot()

@Module({
  imports: [TypeOrmModule.forRoot({
    // TODO: host, port, username and database should be in env var
    type: 'postgres',
    host: 'localhost',
    port: 5432,
    username: 'postgres',
    password: 'password',
    database: 'discover-rx',
    entities: [App],
    synchronize: true,  // TODO: not true for prod, env variable
    retryAttempts: 3,
  })],

Did an npm start
Get this error when running: rxjs_1.lastValueFrom is not a function.

Expected behavior

shouldn't throw this error and app should run as usual

Minimal reproduction of the problem with instructions

Followed in the article provided to second step of creating entity
https://docs.nestjs.com/techniques/database

What is the motivation / use case for changing the behavior?

I want my app to run with TypeORM

Environment


Nest version: 7.6.0
nestjs/typeorm version: 8.0.1
postgres version: 8.6.0
“rxjs”: “^6.6.6",
    “typeorm”: “^0.2.34"
node version: 13.1.4

@jmcdo29
Copy link
Member

jmcdo29 commented Jul 13, 2021

Duplicate of nestjs/nest#7468

@jmcdo29 jmcdo29 marked this as a duplicate of nestjs/nest#7468 Jul 13, 2021
@jmcdo29 jmcdo29 closed this as completed Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants