Skip to content

Function calls are not supported in decorators - Angular 7 #136

@Nawsen

Description

@Nawsen

Hi,

When executing ng build --prod the following error appears.

ERROR in Error during template compile of 'AppComponent'
  Function calls are not supported in decorators but 'beforeMethod' was called in 'log'
    'log' calls 'beforeMethod' at src\app\kaop-test.ts(4,10).

This only happens with AOT enabled.

Example repo: kaop-ts-issue

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions