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

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...



Solution 1:[1]

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

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Roman