rd-dev-ukraine / angular-io-slimscroll

Customizable slimScroll directive for Angular 2.
MIT License
18 stars 19 forks source link

Cannot build --prod #23

Closed pgeza closed 6 years ago

pgeza commented 6 years ago

As I compile my solution containing your directive with ng build everything is ok. But as I compile with ng build --prod Ireceive the following error

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.

Do you have any idea?

I use angular 5.2

Angular CLI: 1.6.3 Node: 6.11.3 OS: win32 x64 Angular: 5.2.0 ... animations, common, compiler, compiler-cli, core, forms ... http, platform-browser, platform-browser-dynamic, router

angular/cli: 1.6.3 angular-devkit/build-optimizer: 0.0.36 angular-devkit/core: 0.0.22 angular-devkit/schematics: 0.0.42 ngtools/json-schema: 1.1.0 ngtools/webpack: 1.9.3 schematics/angular: 0.1.11 schematics/schematics: 0.0.11 typescript: 2.6.2 webpack: 3.10.0

itafraji commented 6 years ago

same for me

eugenesaenko commented 6 years ago

Plugin was updated to 2.3.3. Try this one.