import { Module } from '@nestjs/common';
import { GraphQLModule } from '@nestjs/graphql';
@Module({
imports: [
GraphQLModule.forRoot({
autoSchemaFile: 'schema.gql',
playground: true,
installSubscriptionHandlers: true,
}),
],
})
export class AppModule {}
Hello I have problem that I didn't find any solution for it. I've created nestjs project ( nest new ) and then I instaled some packages form NestJS documentation ( npm i --save @nestjs/graphql graphql-tools graphql apollo-server-express) But after add a GraphQLModule to module imports, I get an error.
internal/modules/cjs/loader.js:625 throw e; ^ Error: No valid exports main found for '/Users/Andrzej/Downloads/WebApps/Testing/becker-app-master-api/api/node_modules/extract-files'
at Object. (/Users/Andrzej/Downloads/WebApps/Testing/becker-app-master-api/api/node_modules/apollo-upload-client/lib/index.js:21:17)