【发布时间】:2022-08-15 02:10:34
【问题描述】:
当我使用 vue ui 命令时,我收到以下错误:TypeError: server.installSubscriptionHandlers is not a function
我使用纱线,我不打算使用 npm。
PS C:\\Users\\Lenovo\\Desktop\\Learnvue\\master> vue ui ???? Starting GUI... Persisted queries are enabled and are using an unbounded cache. Your server is vulnerable to denial of service attacks via memory exhaustion. Setcache: \"bounded\" or persistedQueries: false 在您的 ApolloServer 构造函数中,或参见 https://go.apollo.dev/s/cache-backends 了解其他替代方案。
错误类型错误:server.installSubscriptionHandlers 不是函数
TypeError:server.installSubscriptionHandlers 不是函数
在 module.exports (C:\\Users\\Lenovo\\AppData\\Local\\Yarn\\Data\\global\\node_modules@vue\\cli-ui\\graphql-server.js:165:10)
在 processTicksAndRejections (节点:internal/process/task_queues:96:5)
在异步 ui (C:\\Users\\Lenovo\\AppData\\Local\\Yarn\\Data\\global\\node_modules@vue\\cli\\lib\\ui.js:71:26)`
纱线版本:1.22.19 Vue 版本:@vue/cli 5.0.7