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

224
Views
TypeError: The 'compilation' argument must be an instance of Compilation (React)

I get the following error when I run npm start on my react project. Everything was working fine until I added a few scripts and installed recharts. I've tried npm install, npm cache clean --force, removed package-lock.json and installed again, stash my changes but nothing seems to work.

home/bisola/Documents/pro/gitcoin/subquery/explorer/node_modules/react-scripts/scripts/start.js:19
  throw err;
  ^

TypeError: The 'compilation' argument must be an instance of Compilation
    at Function.getCompilationHooks (/home/bisola/Documents/pro/gitcoin/subquery/explorer/node_modules/webpack/lib/NormalModule.js:193:10)
    at /home/bisola/Documents/pro/gitcoin/subquery/explorer/node_modules/webpack-manifest-plugin/dist/index.js:57:42
    at _next38 (eval at create (/home/bisola/Documents/pro/gitcoin/subquery/explorer/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:50:1)
    at _next16 (eval at create (/home/bisola/Documents/pro/gitcoin/subquery/explorer/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:97:1)
    at Hook.eval [as call] (eval at create (/home/bisola/Documents/pro/gitcoin/subquery/explorer/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:133:1)
    at Hook.CALL_DELEGATE [as _call] (/home/bisola/Documents/pro/gitcoin/subquery/explorer/node_modules/tapable/lib/Hook.js:14:14)
    at Compiler.newCompilation (/home/bisola/Documents/pro/gitcoin/subquery/explorer/node_modules/react-scripts/node_modules/webpack/lib/Compiler.js:1055:26)
    at /home/bisola/Documents/pro/gitcoin/subquery/explorer/node_modules/react-scripts/node_modules/webpack/lib/Compiler.js:1099:29
    at Hook.eval [as callAsync] (eval at create (/home/bisola/Documents/pro/gitcoin/subquery/explorer/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:6:1)
    at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/bisola/Documents/pro/gitcoin/subquery/explorer/node_modules/tapable/lib/Hook.js:18:14)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! explorer@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the explorer@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/bisola/.npm/_logs/2021-12-27T20_51_51_714Z-debug.log
about 4 years ago · Juan Pablo Isaza
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!