rd-dev-ukraine / angular-io-slimscroll

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

Getting issues when migrating from version 1.x.x to 2.3.0 #22

Closed shubham-aneja closed 6 years ago

shubham-aneja commented 6 years ago

Here is the complete stack when I try to run ng serve

> Uncaught Error: Unexpected value 'SlimScroll' declared by the module 'AppModule'. Please add a @Pipe/@Directive/@Component annotation.
>     at syntaxError (compiler.es5.js:1694)
>     at compiler.es5.js:15446
>     at Array.forEach (<anonymous>)
>     at CompileMetadataResolver.webpackJsonp../node_modules/@angular/compiler/@angular/compiler.es5.js.CompileMetadataResolver.getNgModuleMetadata (compiler.es5.js:15428)
>     at JitCompiler.webpackJsonp../node_modules/@angular/compiler/@angular/compiler.es5.js.JitCompiler._loadModules (compiler.es5.js:26826)
>     at JitCompiler.webpackJsonp../node_modules/@angular/compiler/@angular/compiler.es5.js.JitCompiler._compileModuleAndComponents (compiler.es5.js:26799)
>     at JitCompiler.webpackJsonp../node_modules/@angular/compiler/@angular/compiler.es5.js.JitCompiler.compileModuleAsync (compiler.es5.js:26728)
>     at PlatformRef_.webpackJsonp../node_modules/@angular/core/@angular/core.es5.js.PlatformRef_._bootstrapModuleWithZone (core.es5.js:4536)
>     at PlatformRef_.webpackJsonp../node_modules/@angular/core/@angular/core.es5.js.PlatformRef_.bootstrapModule (core.es5.js:4522)
>     at Object../src/main.ts (main.ts:11)

Also in the terminal, it shows`Hash: d7a6d99ea1b3236b5c86 Time: 11290ms chunk {0} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 191 kB {5} [initial] [rendered] chunk {1} main.bundle.js, main.bundle.js.map (main) 359 kB {4} [initial] [rendered] chunk {2} scripts.bundle.js, scripts.bundle.js.map (scripts) 372 kB {5} [initial] [rendered] chunk {3} styles.bundle.js, styles.bundle.js.map (styles) 14.2 kB {5} [initial] [rendered] chunk {4} vendor.bundle.js, vendor.bundle.js.map (vendor) 5.42 MB [initial] [rendered] chunk {5} inline.bundle.js, inline.bundle.js.map (inline) 0 bytes [entry] [rendered]

WARNING in ./~/angular-io-slimscroll/~/@angular/core/esm5/core.js 6436:15-36 Critical dependency: the request of a dependency is an expression

WARNING in ./~/angular-io-slimscroll/~/@angular/core/esm5/core.js 6456:15-102 Critical dependency: the request of a dependency is an expression`

eugenesaenko commented 6 years ago

Package was updated to 2.3.1.