angular-seo icon indicating copy to clipboard operation
angular-seo copied to clipboard

ReferenceError: window is not defined

Open SkMamtajuddin opened this issue 8 years ago • 1 comments

When we use window or document , we are getting this error `> [email protected] start /Users/skmamtajuddin/workspace/ngseo/FrapSeo

ts-node src/server.ts

/Users/path/masonry-layout/masonry.js:33 }( window, function factory( Outlayer, getSize ) { ^ ReferenceError: window is not defined at Object. (/path/masonry-layout/masonry.js:33:4) at Module._compile (module.js:569:30) at Object.Module._extensions..js (module.js:580:10) at Module.load (module.js:503:32) at tryModuleLoad (module.js:466:12) at Function.Module._load (module.js:458:3) at Module.require (module.js:513:17) at require (internal/module.js:11:18) at Object. (/path/node_modules/angular2-masonry/src/masonry.ts:15:15) at Module._compile (module.js:569:30)`

SkMamtajuddin avatar Aug 18 '17 10:08 SkMamtajuddin

I have the same problem

hesampour avatar Oct 23 '17 07:10 hesampour