SyntaxError: The requested module 'graphql-yoga' does not provide an export named 'GraphQLServer'
graphql-yoga에 GraphQLServer 모듈이 없다고?
원래 있다.
이런경우에는 babel로 셋팅이 되어 있는지 확인하자..
npm install @babel/node @babel/core @babel/preset-env --save
를 해주고
.babelrc 파일에
{
"persets": ["@babel/preset-env"]
}
문구를 추가해주자.
'개발 > Web Programming' 카테고리의 다른 글
Error: Query root type must be provided. (0) | 2020.07.27 |
---|---|
TypeError: Cannot set property 'subscriptionServerOptions' of undefined (0) | 2020.07.26 |
[React Native] expo not found (0) | 2020.07.12 |
intellij 에서 plugin 창 열고 설치하기 (0) | 2020.01.15 |
Gradle variable name not initialized in the default constructor (0) | 2020.01.14 |