Skip to content

Error compile with Angular 5 command ng build --prod #25

@vilsonei

Description

@vilsonei

When trying to compile for production I get the following angular error:

Command used:
ng build --prod

Error console:
ERROR in ..\angular-io-slimscroll\slimscroll.directive.ts(3,2): Error during template compile of 'SlimScroll' Function expressions are not supported in decorators in 'Directive' 'Directive' contains the error at ..\@angular\core\core.ts(404,32) Consider changing the function expression into an exported function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions