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
npm run build
or what? – Metallic