Skip to content

Instantly share code, notes, and snippets.

@emonakov
Created January 22, 2025 11:19
Show Gist options
  • Save emonakov/44351b677c228b2ccb5af0c27ca3947b to your computer and use it in GitHub Desktop.
Save emonakov/44351b677c228b2ccb5af0c27ca3947b to your computer and use it in GitHub Desktop.
Reproducing typescript and scheduler's errors
import { Module } from '@nestjs/common'
import { ConfigModule } from '@nestjs/config'
import { ScheduleModule } from '@nestjs/schedule'
@Module({
imports: [
ScheduleModule.forRoot(),
ConfigModule.forRoot({
envFilePath: [`.env.${process.env.NODE_ENV}`, '.env', `.env.${process.env.NODE_ENV}.local`, '.env.local'],
isGlobal: true,
}),
],
})
export class AppModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment