jayphelps/core-decorators

Module ''*'' has no exported member 'debounce'.

Closed this issue · 7 comments

Hey guys I'm receiving this error when I've tried to use your library, I'm using Angular 2.1.0

Can you provide more context? How are you importing it?

Hi, @jayphelps

Thanks for the quick response, like this:

import { debounce } from 'core-decorators';

class Editor {

content = '';

@debounce(500)
updateContent(content) {
this.content = content;
}
}

I'm using Angular2 with webpack, other imports works fine.

Other imports for core-decorators, or do you mean other imports for libraries other than core-decorators? Are you using a type definition for core-decorators? (we don't include one). Which one?

I'm not an ng2 user, so I'm not familiar with Module "*", it being a star/asterisk. That looks wrong, shouldn't it say Module "core-decorators" if it was having a problem with core-decorators?

Other imports like, for example:
import { MdCheckboxModule } from '@angular2-material/checkbox';

And the error arise when I'm adding the core-decorators import...

Are you using a type definition for core-decorators? (we don't include one). Which one?

I'm not an ng2 user, so I'm not familiar with Module "*", it being a star/asterisk. That looks wrong, shouldn't it say Module "core-decorators" if it was having a problem with core-decorators?

Just a heads-up, the @debounce decorator has been deprecated from this package and will be removed in the near future.

Closing due to inactivity from OP