question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DropEvent not exported with other event from @interactjs/types

See original GitHub issue

Expected behavior

To be able to: import { DropEvent } from '@interactjs/types/index';

Actual behavior

I have to do this: import { DropEvent } from '@interactjs/actions/drop/DropEvent' and install: @interactjs/actions or else I get a compilation error in my Angular app. ERROR in The target entry-point "@tft/interact" has missing dependencies: - @interactjs/actions/drop/DropEvent

System configuration

interact.js version: 1.9.18 Browser name and version: chrome latest Operating System: Windows

Additional Info

I have wrapped your library in an angular wrapper. Right now consumers of the library have to install interactjs and @interactjs/actions or else they will get error:

ERROR in The target entry-point "@tft/interact" has missing dependencies: - @interactjs/actions/drop/DropEvent

Is there a preferred way to import types from interact? It seems like the import paths have changed a few time recently.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
nayfincommented, Jul 12, 2020

Here’s that video I mentioned early about helping typescript tree shake unused code.

0reactions
tayecommented, Jul 9, 2020

Neat 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Events - interact.js
InteractEvent s are fired for different actions. The event types include: Draggable: dragstart , dragmove , draginertiastart , dragend ...
Read more >
Why doesn't the '@drop' event work for me in vue?
I want to drag the chip and be able to drop it on another component, and perform a function, but at the time...
Read more >
Make Drag & Drop + DropZone with interact.js + reactjs
JavaScript drag and drop, resizing and multi-touch gestures with inertia and snapping for modern browsers (and also IE9+).
Read more >
DragEvent | typescript - v3.7.7
A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a...
Read more >
@interactjs/modifiers | Yarn - Package Manager
This package is an internal part of interactjs and is not meant to be used independently as each update may introduce breaking changes ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found