Skip to content

Getting error window is not defined #6

@paschalidi

Description

@paschalidi

First things first, this is the most complete parallax library I have come across. Good job, many thanks.

Sometimes I am getting this error that has to do with undefined window, the message is as follows.

500 Internal Server Error. window is not defined ReferenceError: window is not defined at /Users/christos.paschalidis/Documents/new-vimcar/node_modules/react-parallax-component/dist/index.min.js:19:2129 at /Users/christos.paschalidis/Documents/new-vimcar/node_modules/react-parallax-component/dist/index.min.js:19:2061 at e.exports (/Users/christos.paschalidis/Documents/new-vimcar/node_modules/react-parallax-component/dist/index.min.js:19:2347) at Object.<anonymous> (/Users/christos.paschalidis/Documents/new-vimcar/node_modules/react-parallax-component/dist/index.min.js:19:2826) at t (/Users/christos.paschalidis/Documents/new-vimcar/node_modules/react-parallax-component/dist/index.min.js:1:426) at Object.<anonymous> (/Users/christos.paschalidis/Documents/new-vimcar/node_modules/react-parallax-component/dist/index.min.js:17:2115) at Object.<anonymous> (/Users/christos.paschalidis/Documents/new-vimcar/node_modules/react-parallax-component/dist/index.min.js:17:2180) at t (/Users/christos.paschalidis/Documents/new-vimcar/node_modules/react-parallax-component/dist/index.min.js:1:426) at Object.<anonymous> (/Users/christos.paschalidis/Documents/new-vimcar/node_modules/react-parallax-component/dist/index.min.js:17:651) at Object.t.__esModule (/Users/christos.paschalidis/Documents/new-vimcar/node_modules/react-parallax-component/dist/index.min.js:17:2032)

I am using nextjs as my framework not that I think this makes a big difference.

Thanks again.

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