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

unable to import component #1

Closed
flyfj opened this issue Aug 3, 2017 · 2 comments
Closed

unable to import component #1

flyfj opened this issue Aug 3, 2017 · 2 comments

Comments

@flyfj
Copy link

flyfj commented Aug 3, 2017

when i put the component into ngmodule declarations, i got an error saying 'Unexpected value 'Ng2SimpleAutocomplete' declared by the module 'AppModule'. Please add a @Pipe/@Directive/@component annotation.'

I'm using the latest version of angular, any idea how this could happen?

@rhostem
Copy link
Owner

rhostem commented Aug 4, 2017

@flyfj I think you might have added Ng2SimpleAutocomplete at root NgModule that named AppModule.... Sorry I have no idea which problem makes that message.

I just tried this autocomplete module with angular-starter which uses angular@4.3.2 and it works well. 'angular starter' uses webpack, so I tested on my own private project which uses angular cli@1.0.0, angular@4.0.0. It works well too.

And it may be not related to your problem, I figured out this package requires 'tslib' while testing. So I moved it to the dependencies list from devDependencies and published a new version.

@rhostem rhostem closed this as completed Aug 6, 2017
@cristianpoleyJS
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants