-
Notifications
You must be signed in to change notification settings - Fork 16
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 PasswordStrengthBarModule is not an NgModule #6
Comments
Experiencing same issue |
If you're having this problem, the workaround is to add PasswordStrengthBarComponent to the declarations instead of importing PasswordStrengthBarModule. |
I managed to fix a similar issue in another package that I am working on by doing AOT compilation using the ngc compilers instead of the tsc one. More details on this article https://angular.io/docs/ts/latest/cookbook/aot-compiler.html#!#compile |
I'm experiencing the same issues even using the PasswordStrengthBarComponent. I'm using version 1.1 |
@ScottSpittle and @Bigless27, Please confirm that v1.1.2 resolves the import problem. Thanks! |
@rnadler Yes it does, Thanks! |
I have the same issue with my package. To fix the issue, is it just compile my package by doing AOT compilation using the ngc compilers instead of the tsc and include those compiled files in my package? Can you please give me hints to fix this problem? |
The ng-compiler generates additional metadata.json files that tsc does not emit. Those are required in some typescript setups to identify your exported components You need to install the compiler and platform-server
Then you can point it to the same tsconfig or a different one if you want different optimizations sample ts config
You can integrate in your npm scripts
Then execute in the cli once you are ready to build
You can find more details in the documentation https://angular.io/docs/ts/latest/cookbook/aot-compiler.html#!#compile |
Using Angular CLI, installed the package, and for some reason the first compilation with 'ng serve' throws "ERROR in PasswordStrengthBarModule is not an NgModule".
If I make a random change to a file to trigger a rebuild it works fine...
http://puu.sh/uzpXz/ff33ba2f90.png
Version 1.1.1
The text was updated successfully, but these errors were encountered: