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

1.2K
Views
Weird error after updating package.json of old project

Updated the packages.json of a old project to work on it and get this weird error. I don't even know what the issue is here. Any help is appreciated!

Compiled with problems:

ERROR in ./node_modules/@babel/runtime/helpers/esm/inherits.js 1:0-46

Module not found: Error: Can't resolve './setPrototypeOf' in 'C:\Users--\Desktop\Lowkey Meal - React\client\node_modules@babel\runtime\helpers\esm' Did you mean 'setPrototypeOf.js'? BREAKING CHANGE: The request './setPrototypeOf' failed to resolve only because it was resolved as fully specified (probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"'). The extension in the request is mandatory for it to be fully specified. Add the extension to the request.

ERROR in ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js 1:0-46

Module not found: Error: Can't resolve './defineProperty' in 'C:\Users--\Desktop\Lowkey Meal - React\client\node_modules@babel\runtime\helpers\esm' Did you mean 'defineProperty.js'? BREAKING CHANGE: The request './defineProperty' failed to resolve only because it was resolved as fully specified (probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"'). The extension in the request is mandatory for it to be fully specified. Add the extension to the request.

ERROR in ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js 1:0-74

Module not found: Error: Can't resolve './objectWithoutPropertiesLoose' in 'C:\Users--\Desktop\Lowkey Meal - React\client\node_modules@babel\runtime\helpers\esm' Did you mean 'objectWithoutPropertiesLoose.js'? BREAKING CHANGE: The request './objectWithoutPropertiesLoose' failed to resolve only because it was resolved as fully specified (probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"'). The extension in the request is mandatory for it to be fully specified. Add the extension to the request.

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Just type in terminal --> npm i --> press Enter Required module is not installed and after running this command all the required module will be installed automatically.

over 4 years ago · Santiago Trujillo Report

0

Had similar problem when upgrading my package.json with create-react-app 5.0.0.

I'd already tried deleting node-modules and re-doing the npm install but it didn't work.

The trick was to delete node_modules AND package-lock.json before doing the npm install. After that the build worked fine.

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!