Skip to content

执行 vue ui 命令时出现错误: ERROR TypeError: Cannot read properties of undefined (reading 'on') #7221

Closed
@learnguos

Description

@learnguos

Version

5.0.4

Environment info

Environment Info:

  System:
    OS: Windows 10 10.0.22621
    CPU: (16) x64 AMD Ryzen 7 5825U with Radeon Graphics
  Binaries:
    Node: 16.15.0 - C:\Program Files\nodejs\node.EXE
    Yarn: Not Found
    npm: 8.10.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Chrome: Not Found
    Edge: Chromium (103.0.1264.44)
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

执行 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: Cannot read properties of undefined (reading 'on')

TypeError: Cannot read properties of undefined (reading 'on')
at ui (C:\Users\Administrator\AppData\Roaming\npm\node_modules@vue\cli\lib\ui.js:90:14)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

What is expected?

出现的错误给出了解决·方案,但是我不知道如何寻找ApolloServer构造函数设置' cache: "bounded"或者' persistedQueries: false '

What is actually happening?

出现错误语句,浏览器没有打开可视面板

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions