Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find name 'DndDropEvent'. #58

Closed
netdjw opened this issue Feb 28, 2019 · 4 comments
Closed

Cannot find name 'DndDropEvent'. #58

netdjw opened this issue Feb 28, 2019 · 4 comments
Labels

Comments

@netdjw
Copy link

netdjw commented Feb 28, 2019

I just copied the example code into my component and at this code:

  onDrop(event: DndDropEvent) {
    console.log('dropped', JSON.stringify(event, null, 2));
  }

I get this error:

error TS2304: Cannot find name 'DndDropEvent'.

@reppners
Copy link
Owner

reppners commented Mar 1, 2019

Have you added the import for the type?

import { DndDropEvent } from 'ngx-drag-drop';

@netdjw
Copy link
Author

netdjw commented Mar 5, 2019

Yes. Of course.

@reppners
Copy link
Owner

reppners commented Mar 5, 2019

Must be an issue with your project setup, I can't reproduce this wether in stackblitz nor in a local project. If you are able to share your project setup (tsconfig.json, package.json) that might help figure out what the issue is.

@netdjw
Copy link
Author

netdjw commented Mar 20, 2019

Ach, I missed the import:

import { DndDropEvent } from 'ngx-drag-drop';

Sorry for wasting your time.

@netdjw netdjw closed this as completed Mar 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants