Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

Module '"@nestjs/config"' has no exported member 'ConfigModule'

$
0
0

I'm using NestJS,I installed @nestjs/config module using the command :

npm i --save @nestjs/config 

I got this error : Module '"@nestjs/config"' has no exported member 'ConfigModule'

this is my code in app.module file :

import { Module } from '@nestjs/common';import { AppController } from './app.controller';import { AppService } from './app.service';import { AuthModule } from './auth/auth.module';import { UserModule } from './user/user.module';import { BookmarkModule } from './bookmark/bookmark.module';import { PrismaModule } from './prisma/prisma.module';import { ConfigModule } from '@nestjs/config';@Module({  imports: [ConfigModule, AuthModule, UserModule, BookmarkModule, PrismaModule],  controllers: [AppController],  providers: [AppService],})export class AppModule {}

PS : Node version : 17.6.0 / OS : Manjaro Linux


Viewing all articles
Browse latest Browse all 5049

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>