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

Cannot compile with --aot #23

Closed
DocLM opened this issue Mar 9, 2018 · 1 comment
Closed

Cannot compile with --aot #23

DocLM opened this issue Mar 9, 2018 · 1 comment

Comments

@DocLM
Copy link
Contributor

DocLM commented Mar 9, 2018

I would like to use mcc color picker from mcc latest release 2.4.3 but when I import the module in my application module I get the following error.

Only AOT compilation is affected.

OS: MacOS 10.13.3

I made a simple sample repo with the issue here: https://github.com/DocLM/mcc-test

ng serve --aot
** NG Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **
Date: 2018-03-09T16:44:22.314Z                                                       
Hash: afcf2ba8b0c1ee4d5a1b
Time: 2581ms
chunk {inline} inline.bundle.js (inline) 3.85 kB [entry] [rendered]
chunk {main} main.bundle.js (main) 2.91 kB [initial] [rendered]
chunk {polyfills} polyfills.bundle.js (polyfills) 577 bytes [initial] [rendered]
chunk {styles} styles.bundle.js (styles) 41.5 kB [initial] [rendered]
chunk {vendor} vendor.bundle.js (vendor) 852 kB [initial] [rendered]

ERROR in : Unexpected value 'MccColorPickerModule in ...path.../node_modules/material-community-components/material-community-components.d.ts' imported by the module 'AppModule in ...path.../src/app/app.module.ts'. Please add a @NgModule annotation.


webpack: Failed to compile.

Maybe related to ng-packagr/ng-packagr#355

@DocLM
Copy link
Contributor Author

DocLM commented Mar 9, 2018

I found that it is related to missing metadata that are not generated.

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

2 participants