ngx-slimscroll icon indicating copy to clipboard operation
ngx-slimscroll copied to clipboard

angular cli production build - Cannot read property 'text' of undefined

Open lukasz-galka opened this issue 7 years ago • 4 comments

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.

lukasz-galka avatar Feb 07 '17 17:02 lukasz-galka

I'll check on this one, thanks for notice.

jkuri avatar Feb 16 '17 15:02 jkuri

Same issue in @angular/cli: 1.0.0-beta.32.3! 😟

aralroca avatar Feb 21 '17 10:02 aralroca

same issue with latest angular cli

kakalos12 avatar Mar 06 '17 03:03 kakalos12

Hi Guys,

Any update regarding this

MorlaRamakrishna avatar May 17 '17 06:05 MorlaRamakrishna