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

70
Views
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 answers
Answer question

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 Report

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 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!