Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

469
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda