No Directive annotation found on DataTable

UI Components for Angular
Post Reply
germeson1
Posts: 6
Joined: 06 Jun 2016, 20:28

06 Jun 2016, 21:27

Alright, so I've been trying to use primeng components.
I've set up my project with :


"angular2": "2.0.0-beta.7",
"primeng": "1.0.0-beta.8",
"rxjs": "5.0.0-beta.2"

Every time I provide DataTable directives it simply crashes with:

EXCEPTION: Error: Uncaught (in promise): No Directive annotation found on DataTable

The only thing I notice is the source code on github is very different from the package that gets downloaded with npm.
Am I doing something wrong?

germeson1
Posts: 6
Joined: 06 Jun 2016, 20:28

08 Jun 2016, 17:57

I resolved it by creating a new project and sorting out the mess of dependencies that I had.

I came into realization that "angular2" is not the newest angular, and that "@angular" is what I must be using right now.
I had both angular2 and @angular dependencies, which was causing this error.

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests