I’m new here and I can not find anything about my problem.
I want to use package apollo-server-hapi and graphql, but when I try to applyMiddleware there is an error with hapi server:
ApolloServer.d.ts(12, 5): The expected type comes from property 'app' which is declared here on type 'ServerRegistration'
This is because in “ApolloServer.d.ts” import for hapi is from already deprecated package “hapi” and in my project I use Hapi from new npm package @hapi/hapi
I would be very grateful if someone knows a solution to the problem and shares it!