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

AoT compilation fails using ModalModule.forRoot() #207

Closed
isaacplmann opened this issue Sep 28, 2016 · 0 comments
Closed

AoT compilation fails using ModalModule.forRoot() #207

isaacplmann opened this issue Sep 28, 2016 · 0 comments

Comments

@isaacplmann
Copy link
Contributor

  • I'm submitting a ...
    [x] bug report
  • What is the current behavior?

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant