kolkov / ngx-gallery

A simple responsive native gallery component for Angular 8+.
https://ngx-gallery.kolkov.ru/
MIT License
115 stars 56 forks source link

Issue in SSR Build: ERROR in ./node_modules/@kolkov/ngx-gallery/fesm2015/kolkov-ngx-gallery.js #5

Closed ramesh-1986 closed 4 years ago

ramesh-1986 commented 4 years ago

Hi Kolkov, I got this issue in SSR Build. could you look in to it and please give solution to fix this issue.

ERROR in ./node_modules/@kolkov/ngx-gallery/fesm2015/kolkov-ngx-gallery.js Module build failed (from ./node_modules/@angular-devkit/build-optimizer/src/build-optimizer/webpack-loader.js): TypeError: Cannot read property 'kind' of undefined at isAngularDecoratorMetadataExpression (D:\PC Theme\galexia\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:265:35) at checkNodeForDecorators (D:\PC Theme\galexia\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:77:21) at visitNodes (D:\PC Theme\galexia\node_modules\typescript\lib\typescript.js:16631:30) at Object.forEachChild (D:\PC Theme\galexia\node_modules\typescript\lib\typescript.js:16859:24) at transformer (D:\PC Theme\galexia\node_modules\@angular-devkit\build-optimizer\src\transforms\scrub-file.js:63:16) at transformSourceFileOrBundle (D:\PC Theme\galexia\node_modules\typescript\lib\typescript.js:67384:57) at transformation (D:\PC Theme\galexia\node_modules\typescript\lib\typescript.js:83586:24) at transformRoot (D:\PC Theme\galexia\node_modules\typescript\lib\typescript.js:83606:82) at Object.map (D:\PC Theme\galexia\node_modules\typescript\lib\typescript.js:499:29) at Object.transformNodes (D:\PC Theme\galexia\node_modules\typescript\lib\typescript.js:83593:30) at emitJsFileOrBundle (D:\PC Theme\galexia\node_modules\typescript\lib\typescript.js:84089:32) at emitSourceFileOrBundle (D:\PC Theme\galexia\node_modules\typescript\lib\typescript.js:84043:13) at forEachEmittedFile (D:\PC Theme\galexia\node_modules\typescript\lib\typescript.js:83832:34) at Object.emitFiles (D:\PC Theme\galexia\node_modules\typescript\lib\typescript.js:84026:9) at emitWorker (D:\PC Theme\galexia\node_modules\typescript\lib\typescript.js:89951:33) at D:\PC Theme\galexia\node_modules\typescript\lib\typescript.js:89912:66

kolkov commented 4 years ago

Hi! Provide a repo please with this error.

ramesh-1986 commented 4 years ago

Hi! Provide a repo please with this error.

https://github.com/ramesh-1986/Photo-gallery

This is my repo and command to run ssr build is npm run build:ssr

kolkov commented 4 years ago

Sorry for the delay. I willl tryed to update Angular to latest version, this fixed the issue.