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

ERROR in NvD3Module is not an NgModule #1

Closed
rohamdi opened this issue Jan 10, 2017 · 5 comments
Closed

ERROR in NvD3Module is not an NgModule #1

rohamdi opened this issue Jan 10, 2017 · 5 comments

Comments

@rohamdi
Copy link

rohamdi commented Jan 10, 2017

Hi,

with the lastest version of angular2 (and angular-cli), i am getting the error "ERROR in NvD3Module is not an NgModule" during compilation (dev serv, prod build and -aot compilation)

I don't know if the issue is angular2-nvd2's side or some other places, but i'am using other third-party modules and i only have this problem with yours so i thought that i would let you know.

for information :
$ ng -v
angular-cli: 1.0.0-beta.24
node: 6.9.2
os: win32 x64
@angular/common: 2.4.2
@angular/compiler: 2.4.2
@angular/core: 2.4.2
@angular/forms: 2.4.2
@angular/http: 2.4.2
@angular/platform-browser: 2.4.2
@angular/platform-browser-dynamic: 2.4.2
@angular/router: 3.4.2
@angular/compiler-cli: 2.4.2

and thanks for your hard work

@hendrathings
Copy link
Owner

Hi, it seem typescript version of angular-cli issue .
Consider use AngularClass/Starter at the moment. I will make support for angular-cli.

@rohamdi
Copy link
Author

rohamdi commented Jan 11, 2017

OKay, thanks, you can close the issue i guess.
I have another question, after i updated my data, how can i update the graph with your module? (it's not an issue but i can't manage to update it).

@hendrathings
Copy link
Owner

Here need to update::

this.data = [
      {
        key: "Cumulative Return",
        values: [
          {
            "label" : "A" ,
            "value" : -29.765957771107
          } ,
          {
            "label" : "B" ,
            "value" : 0
          } ,
          {
            "label" : "C" ,
            "value" : 32.807804682612
          } ,
        ]
      }
    ];

@rohamdi
Copy link
Author

rohamdi commented Jan 12, 2017

my code was wrong, your module does the update automatically, my bad, and thanks for the answers.

@hendrathings
Copy link
Owner

This is issue come from angular-cli with @angular/compiler-cli.

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

2 participants