Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Issue compiling with modules in AOT mode #291

Closed
ewhauser opened this issue Feb 3, 2019 · 3 comments
Closed

Issue compiling with modules in AOT mode #291

ewhauser opened this issue Feb 3, 2019 · 3 comments
Labels

Comments

@ewhauser
Copy link

ewhauser commented Feb 3, 2019

I'm running into the dreaded Function calls are not supported in decorators with a number of my modules. If I am compiling with the Angular CLI in AOT mode (ng serve --prod), I do not get these errors. I've created a small reproduction here: https://github.com/ewhauser/angular-bazel-example/tree/jwt

ERROR: /Users/ewhauser/working/angular-bazel-example/src/BUILD.bazel:14:1: Compiling Angular templates (ngc) //src:src failed (Exit 1)
Error during template compile of 'AppModule'
  Function calls are not supported in decorators but 'JwtModule' was called.
: Unexpected value 'undefined' imported by the module 'AppModule in /private/var/tmp/_bazel_ewhauser/77225148e87cf692ce2dde408b0ec7a8/execroot/angular_bazel_example/src/app.module.ts'
Error during template compile of 'AppModule'
  Function calls are not supported in decorators but 'JwtModule' was called.
@alexeagle
Copy link
Contributor

hmm, I suspect that in the CLI we do some different transformation of your sources before handing it to ngc, than what we do under Bazel.

thanks for the repro

@mgechev
Copy link
Member

mgechev commented Jun 25, 2019

@ewhauser with @gregmagolan we worked on a fix. Seems like the problem you reported is no longer reproducible. We hit two other issues, however, that are part of this fix auth0/angular2-jwt#608.

@mgechev
Copy link
Member

mgechev commented Jul 10, 2019

@ewhauser I believe we can close this issue. Please try the latest release of auth0's JWT.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants