Uncaught Error: Cannot find module '@angular/core' in

UI Components for Angular
Post Reply
kiran.sinha
Posts: 2
Joined: 07 Jun 2016, 11:57

07 Jun 2016, 16:22

Hi
I am using angular2 "angular2": "2.0.0-beta.0" and when I am using directives datatable and Coulmn getting this error

Uncaught Error: Cannot find module '@angular/core' in ../node_modules/primeng/components/dom
@ ./~/primeng/components/dom/domhandler.js 11:13-37

Part of componet file is below
import {Component, ViewChild, NgZone, Pipe, PipeTransform} from "angular2/core";
import {RouterLink, Router} from "angular2/router";
import {FORM_DIRECTIVES, ControlGroup, FormBuilder, Validators} from "angular2/common";
import {DataTable} from 'primeng/primeng';
import {Column} from 'primeng/primeng';

@Component({
selector: "applist",
template: require('./index.html'),
directives: [DataTable,Column]

})

Please suggest its urgent

Thanks in advance

pkmcculloch
Posts: 2
Joined: 01 Jun 2016, 13:33

08 Jun 2016, 12:52

You need to use @angular 2.0.0-rc.1.

E.g. in packages.json:
...
"dependencies": {
"@angular/common": "2.0.0-rc.1",
"@angular/compiler": "2.0.0-rc.1",
"@angular/core": "2.0.0-rc.1",
"@angular/http": "2.0.0-rc.1",
"@angular/platform-browser": "2.0.0-rc.1",
"@angular/platform-browser-dynamic": "2.0.0-rc.1",
"@angular/router-deprecated": "2.0.0-rc.1",
"@angular/router": "2.0.0-rc.1",
"@angular/upgrade": "2.0.0-rc.1",
...

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests