TypeError: (0 , apollo_server_core_1.ApolloServerPluginLandingPageGraphQLPlayground) is not a function

Viewed 637

I upgraded Nestjs server package and tried to start my server. This time I got the following error:

`TypeError: (0 , apollo_server_core_1.ApolloServerPluginLandingPageGraphQLPlayground) is not a function`

I puzzled...

1 Answers

After a search I found that ApolloServerPluginLandingPageGraphQLPlayground depends on apollo-server-core package. I installed this package and the error disappeared:

yarn add apollo-server-core

or

npm install apollo-server-core
Related