Skip to content

ReferenceError: window is not defined #12

Open
@SkMamtajuddin

Description

@SkMamtajuddin

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)`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions