执行vue ui时报错,提示Persisted queries are enabled and are using an unbounded cache. Your server is vulnerable to denial of service attacks via memory exhaustion. Set cache: "bounded" or persistedQueries: false in your ApolloServer constructor, or see https://go.apollo.dev/s/cache-backends for other alternatives.
ERROR TypeError: server.installSubscriptionHandlers is not a function
TypeError: server.installSubscriptionHandlers is not a function
at module.exports (C:\Users\Lenovo\AppData\Roaming\npm\node_modules@vue\cli\node_modules@vue\cli-ui\graphql-server.js:165:10)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ui (C:\Users\Lenovo\AppData\Roaming\npm\node_modules@vue\cli\lib\ui.js:71:26)
通过重新安装脚手架4.5.17版本暴力解决。
查阅github源码地址得知以下两种方式:

执行vue ui命令报错
最新推荐文章于 2023-10-21 23:04:28 发布
博客讲述执行vue ui时出现报错,提示服务器易受内存耗尽的拒绝服务攻击,还有TypeError错误。最终通过重新安装脚手架4.5.17版本暴力解决,还可查阅github源码地址获取另外两种解决方式。
1461

被折叠的 条评论
为什么被折叠?



