0
import {GraphQLSchema, GraphQLObjectType} from 'graphql';
을 사용하여 노드 모듈을 가져 오지만 잘못된 폴더를 참조합니다. 다른 노드 모듈을 참조하는 것과 비슷한 전체 경로를 쓸 필요없이 노드 모듈 'graphql'을 참조 할 수있는 방법이 있습니까 import { ApolloModule } from 'apollo-angular';
? 내가 만든 폴더를 노드 모듈을 참조하려고하고 있지 않다각도 응용 프로그램에서 가져올 폴더를 변경하는 방법은 무엇입니까?
'.../server/graphql/index"' has no exported member 'GraphQLObjectType'
:
이
은 점점 오류 메신저입니다.이 내 파일 구조의 단순화 된 버전입니다 :
이.
+-- client
| +-- app.module.ts
+-- node_modules
+-- server
| +-- graphql
| | +-- mutations
| | +-- queries
| | +-- types
| | +-- index.ts
| | +-- app.ts // my server file
+-- package.json
+-- .angular-cli.json