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

203
Views
'Module Not Found Issue'

There is an issue in my Project and stating 'Cannot find module ' after several attempts and I am trying to install and uninstall the packages simultaneously, the issue is not resolving. Here is the code of my package.json file:-

{
      "name": "tooling-01-starting-project",
      "version": "1.0.0",
      "description": "JavaScript The Complete Guide",
      "main": "eslint.js",
      "scripts": {
        "test": "echo \"Error: no test specified\" && exit 1",
        "build": "webpack"
      },
      "author": "Junaid Jawed",
      "license": "ISC",
      "devDependencies": {
        "eslint": "^7.32.0",
        "webpack": "^5.53.0",
        "webpack-cli": "^4.8.0",
        "webpack-dev-server": "^4.2.1"
      },
      "dependencies": {
        "grunt": "^1.4.1"
      }

}

Below this is my webpack.config.js file coding:-

 /* eslint-disable no-undef */
const path = require('path');

module.exports =
{
    entry:'./src/app.js',
    output:
    {
        filename:'app.js',
        path:path.resolve(__dirname,'assets','scripts')
    }

};

    const path2 = require('path');
    
    module.exports =
    {
        entry:'./node_modules/webpack/bin/webpack.js',
        output:
        {
            filename:'webpack.js',
            path2:path2.resolve(__dirname,'webpack','bin')
        }
    
    };
     

Also above I have attached an screenshot of my error in npm command prompt:-

Can somebody tell me what is the problem of this issue? I think it doesn't found the file location where my webpack.js file is located.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I've been stuck with that kind of issues for times in the past.

One thing that it could be, is about the project location. Here it is said that's in E:\, try to relocate it in C:\Users\YourUser\Documents\MyProject and do the following:

Run npm i command, and start the solution. If it doesn't work, could be an issue regarding the version of node that's installed in your computer...

about 4 years ago · Juan Pablo Isaza 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!