-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Unexpected value 'ChartistModule' imported by the module 'AppModule'. Please add a @NgModule annotation. #124
Comments
Yeah, I have tests that seem to work. Also, I do have an |
When I install ng-chartist in a new angular-cli 4 app and add the module to the AppModule:
|
Hi, I also have an angular 4 app not using the CLI which throws the same error. |
Have the same issue, i forked the module and rebuilt it and now it works.
|
Would adding a PR to make ng-chartist include AOT metadata files be welcome ? |
That would be fine, but it needs to be reproducible. As of now, I cannot locally generate the metadata. If a PR is made, I'd like to see instructions on how to generate it, or just fix the build if there is an issue with it. |
Is that a reproduction of the issue or a reproduction of how to generate the metadata ? |
Reproduction on how to generate the metadata. |
master...mikerhyssmith:master the task build:dist:aot with the changes to the tsconfig produces the metadata.json file along with what is already generated. However, I had to change some dependencies to get this running on windows as git-scripts doesn't support windows and there seemed to be issues with lodash types. |
Those changes seem straightforward enough to me. If you wanna make a PR, I can take a look tonight. |
I have an Angular 4 / Electron application and I am getting the following error when importing the ChartistMoudule.
This seems to be an issue with how dependencies are annotated in the
package.json
of the library. See the Angular repo thread #15763. Has there been any testing with this module in Angular 4?The text was updated successfully, but these errors were encountered: