-
-
Notifications
You must be signed in to change notification settings - Fork 35.3k
SyntaxError in node:perf_hooks documentation #60368
Copy link
Copy link
Closed
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.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 implementation of the Performance Timing API.Issues and PRs related to the implementation of the Performance Timing API.
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to the documentations.Issues and PRs related to the documentations.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 implementation of the Performance Timing API.Issues and PRs related to the implementation of the Performance Timing API.
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: