ngrev icon indicating copy to clipboard operation
ngrev copied to clipboard

Template compile error: Function expressions are not supported in decorators

Open IbeVanmeenen opened this issue 8 years ago • 1 comments

Though my project is compatible with the Angular's AoT compiler, I get the following parse error:

err

Looks like the key error here is: function expressions that are not supported in the decorators, in the app/app.module.ts file, line 45, which has following code (line 45 is useFactory):

code

Any Ideas? Oh, and thanks for providing such an amazing tool 😻

IbeVanmeenen avatar Feb 23 '18 21:02 IbeVanmeenen

Do not use arrow function but a regular anonymous functions.

mgechev avatar Feb 23 '18 23:02 mgechev