You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the AoT compiler on an app that imports ModalModule.forRoot() throws an error.
The problem is specifically with the providers. I'll try to solve in a PR when I get time.
What is the expected behavior?
AoT compilation works.
Please tell us about your environment:
Angular version: 2.0.0
Windows
Error
Error: Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol AppModule in /src/app.module.ts, resolving symbol AppModule in /src/app.module.ts
at simplifyInContext (\node_modules\@angular\compiler-cli\src\static_reflector.js:469:23)
at StaticReflector.simplify (\node_modules\@angular\compiler-cli\src\static_reflector.js:472:22)
at StaticReflector.annotations (\node_modules\@angular\compiler-cli\src\static_reflector.js:61:36)
at _loop_1 (\node_modules\@angular\compiler-cli\src\codegen.js:53:54)
at CodeGenerator.readFileMetadata (\node_modules\@angular\compiler-cli\src\codegen.js:66:13)
at \node_modules\@angular\compiler-cli\src\codegen.js:100:74
at Array.map (native)
at CodeGenerator.codegen (\node_modules\@angular\compiler-cli\src\codegen.js:100:35)
at codegen (\node_modules\@angular\compiler-cli\src\main.js:7:81)
at Object.main (\node_modules\@angular\tsc-wrapped\src\main.js:30:16)
Compilation failed
The text was updated successfully, but these errors were encountered:
[x] bug report
Running the AoT compiler on an app that imports
ModalModule.forRoot()
throws an error.The problem is specifically with the providers. I'll try to solve in a PR when I get time.
AoT compilation works.
The text was updated successfully, but these errors were encountered: