Skip to content

SyntaxError: The requested module 'process' does not provide an export named 'report' #41774

Closed
@madflow

Description

@madflow

Affected URL(s)

https://nodejs.org/api/process.html#processreport

Description of the problem

import { report } from 'process';

console.log(`Reports are compact? ${report.compact}`);

yields:

import { report } from 'process';
         ^^^^^^
SyntaxError: The requested module 'process' does not provide an export named 'report'

The process module seems not to be fully esm ready?

node --version
v17.4.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    esmIssues and PRs related to the ECMAScript Modules implementation.processIssues and PRs related to the process subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions