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

71
Vistas
Using plain-draggable library with React

I want to use the plain-draggable library with my React app. To package.json I added: "plain-draggable": "^2.5.14",

Then I ran npm i. Upon starting the app using react-scripts start I see the error in the console:

`Module not found: Can't resolve 'anim-event' in '/Users/use/app/tom/new_version/app/node_modules/plain-draggable'`

I then go into the module with cd node_modules/plain-draggable and run npm i. Now it works, but I need to do this every time I run the app. How can I fix this?

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

You can install the missing dependencies in your main project rather than going to the node_modules folder and reinstalling it each time.

Try it in the root directory of your application;

npm install --save anim-event cssprefix m-class-list pointer-event
about 4 years ago · Juan Pablo Isaza Denunciar

0

You are facing this problem because there are quite a few dependencies in the plain-draggable, which should have been part of dependencies but are declared inside devDependencies. Check below snapshot from Github

enter image description here

As stated by @ozan-yurtsever, you need to install those dependencies along with plain-draggable and add it to your own dependencies section.

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