我正在尝试启动我的 nestJs 服务器,它一直给我这个错误:
UnhandledPromiseRejectionWarning: 错误:在调用 await server.start()
之前你必须 server.applyMiddleware()
在 ApolloServer
我什至不确定从哪里调试,因为我对 NestJs 和 GraphQL 还是很陌生。
最佳答案
这是一个已知错误,有一个 Unresolved 问题 and a merged PR to fix it 。现在,您可以降级到 apollo-server-express@^2
关于error-handling - 未处理的PromiseRejectionWarning : Error: You must `await server.start()` before calling `server.applyMiddleware()` at ApolloServer,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68354656/