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

metadata.json missing from release #104

Closed
nud opened this issue Mar 27, 2017 · 1 comment
Closed

metadata.json missing from release #104

nud opened this issue Mar 27, 2017 · 1 comment

Comments

@nud
Copy link

nud commented Mar 27, 2017

Hi

While using ng-xi18n on an Angular2 project that uses ng-chartist, I get the following error:

Error: Unexpected value 'ChartistModule in <snap>/node_modules/ng-chartist/dist/chartist.component.d.ts...

Using regular builds through webpack works fine though, so it's just the ng-xi18n command that fails. Presumably other ng command-line tools might exhibit the same problems.

According to angular/angular#13240 the reason would be that metadata.json is missing from the release.

@warmans
Copy link

warmans commented Apr 27, 2017

This module does not work with angular-cli aot builds due to a similar error:

ERROR in Unexpected value 'ChartistModule in .../node_modules/ng-chartist/dist/chartist.component.d.ts' imported by the module 'AppModule in .../src/app/app.module.ts'. Please add a @NgModule annotation.

I think it just needs the module annotations in the code. Maybe you can do the same thing with a metadata file but the standard way would be an annotation as far as I know.

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

No branches or pull requests

3 participants