rxjs_1.lastValueFrom is not a function
joe-aloia opened this issue · comments
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
Duplicate of nestjs/nest#7468