Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

256
Views
Nodejs process.report is undefined?

In nodejs I'm doing:

import * as process from 'process';

console.log(process.report); // undefined

and I'm getting undefined. "node -v" gives me v16.13.2.

Does anyone knows why?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

It looks like the docs are wrong and the process module is not fully esm ready.

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

Above error is the reason, why import * as process from 'process' gives undefined.

You can use the default export or use CommonJs for the time being I would argue.

import process from 'process';

console.log(process.report);
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!