Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

79
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda