Skip to content

SyntaxError: The requested module 'node:events' does not provide an export named 'addAbortListener' #3218

Open
@chenkongming

Description

@chenkongming
  • I confirm that this is an issue rather than a question.

Bug report

import {addAbortListener} from 'node:events';
^^^^^^^^^^^^^^^^
SyntaxError: The requested module 'node:events' does not provide an export named 'addAbortListener'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)

Steps to reproduce

node v18.17.1
vuepress 2.0.0-rc.9
vuepress-plugin-search-pro 2.0.0-rc.38

What is expected?

What is actually happening?

Other relevant information

  • Output of npx vuepress info in my VuePress project:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions