-
-
Notifications
You must be signed in to change notification settings - Fork 37.3k
SyntaxError in node:perf_hooks documentation #60368
Copy link
Copy link
Closed
Labels
docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.perf_hooksIssues and PRs related to the perf_hooks module and performance measurement APIs.Issues and PRs related to the perf_hooks module and performance measurement APIs.
Description
Activity
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.good first issueIssues that are suitable for first-time contributors.Issues that are suitable for first-time contributors.perf_hooksIssues and PRs related to the perf_hooks module and performance measurement APIs.Issues and PRs related to the perf_hooks module and performance measurement APIs.
Affected URL(s)
https://nodejs.org/api/perf_hooks.html#performanceeventlooputilizationutilization1-utilization2
Description of the problem
I saved the example code in a file
test.mjs:Upon running
node test.mjs, an exception is thrown:SyntaxError: The requested module 'node:perf_hooks' does not provide an export named 'eventLoopUtilization'However, importing
performanceworks: