-
Notifications
You must be signed in to change notification settings - Fork 68
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: Calling NotifierModule.forRoot results in 'Error encountered resolving symbol values statically' #5
Comments
Just published v1.0.3, which (hopefully) should fix the issue you described. For details regarding why that problem even existed I can also refer to two Angular issues:
Could you run an |
@dominique-mueller Im on 1.0.3 and getting the error when using the latest CLI version (@angular/cli RC.0)
This is not happening on the older version of the CLI (Im guessing it was not using --aot in the -prod then) |
Hey there, quiet an interesting error you get there. I tried to reproduce it, thus created a quick Angular app with the latest version of 2.4.x, together with the latest version of the Angular CLI (RC.0). I tried a whole bunch of constellations, such as
However, I'm not able to get the issue you described above. Do you have more information about the issue, or maybe are you able to create a Plunkr showing it? Which exact Angular version are you using (latest is 2.4.8)? |
Hello @dominique-mueller Thanks for the quick reply! I removed my node_modules folder and reinstalled everything, so my current angular version is at 2.4.7. This issue does not happen for me if I turn AOT off, or do just Also I was going through the library code and I found in the components you have private variables (notifications and config) which are also being used in the html template - not sure if that was related. Cheers. |
@dominique-mueller thanks, I will try out the latest version. |
@dominique-mueller I can confirm the problem has been fixed for me with version 1.0.4 thanks a bunch! |
in app.modules.ts : NotifierModule.forRoot({}) throws an error
when i build the angular2-cli project.
The text was updated successfully, but these errors were encountered: