ngx-slimscroll
ngx-slimscroll copied to clipboard
angular cli production build - Cannot read property 'text' of undefined
I can't build project with target production
ng build --target=production
I am getting error:
ERROR in ./~/ng2-slimscroll/index.ts Module build failed: TypeError: Cannot read property 'text' of undefined at Object.getTokenPosOfNode ((path)\node_modules\typescript\lib\typescript.js:5692:71) at IdentifierObject.TokenOrIdentifierObject.getStart ((path)\node_modules\typescript\lib\typescript.js:53623:23) at IdentifierObject.TokenOrIdentifierObject.getText ((path)\node_modules\typescript\lib\typescript.js:53644:77) at (path)\node_modules\@ngtools\webpack\src\loader.js:119:42 at Array.filter (native) at (path)\node_modules\@ngtools\webpack\src\loader.js:118:14 at Array.forEach (native) at _removeDecorators ((path)\node_modules\@ngtools\webpack\src\loader.js:109:10) at (path)\node_modules\@ngtools\webpack\src\loader.js:282:48 @ ./src/$$_gendir/app/app.module.ngfactory.ts 20:0-48 @ ./src/main.ts @ multi ./src/main.ts
default build is working:
ng build
angular cli version:
@angular/cli: 1.0.0-beta.30 node: 6.9.1 os: win32 x64 @angular/common: 2.4.6 @angular/compiler: 2.4.6 @angular/core: 2.4.6 @angular/forms: 2.4.6 @angular/http: 2.4.6 @angular/platform-browser: 2.4.6 @angular/platform-browser-dynamic: 2.4.6 @angular/router: 3.4.6 @angular/cli: 1.0.0-beta.30 @angular/compiler-cli: 2.4.6
ng2-slimscroll version 1.2.1
to reproduce you can create empty project with angular cli, add ng2-slimscroll and make production build.
I'll check on this one, thanks for notice.
Same issue in @angular/cli: 1.0.0-beta.32.3
! 😟
same issue with latest angular cli
Hi Guys,
Any update regarding this