designcourse / angular-seo

A quick starter template for Angular SEO using Angular 4 with Universal & the Angular CLI
115 stars 40 forks source link

ReferenceError: window is not defined #12

Open SkMamtajuddin opened 7 years ago

SkMamtajuddin commented 7 years ago

When we use window or document , we are getting this error `> ang4-seo@0.0.0 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)`

hesampour commented 6 years ago

I have the same problem