Holen Sie sich Fensterobjekt in NextJs

componentDidMount() {
   console.log('window.innerHeight', window.innerHeight);
}

this not work in next js
Lonely Louse