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

467
Views
Module not found: Error: Can't resolve - Parsed request is a module

I have class components based project (a requirement by company, can't change to function components)

Once I ran elint --fix and started the project again, it gives me this error just for one file.

Parsed request is a module using description file: C:\Users\Computer\Desktop\shop\package.json (relative paist or is not a directory

C:\Users\Computer\Desktop\shop\src\node_modules doesn't exist or is not a directory
looking for modules in C:\Users\Computer\Desktop\shop\node_modules

The file only contains an exported function that I use elsewhere to dispatch data. I'm not sure why it's looking in node_modules or how to fix this error.

The file looks something like this :

import store, { addToCart } from '../redux/store'

export function addToCartFunc (---props---) {

    ---code ---- 

  store.dispatch()
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I have no idea why this was happening, my guess it was recognizing the file as some kind of webpack but I fixed it by importing it as :

import { addToCartFunc } from './addToCartFunc.js'

instead of (like all others):

import { addToCartFunc } from './addToCartFunc'
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!