Static GitHub Issues

[3168] window is not defined in middleware

prev: How to use require.ensure() in nuxt router?
next: Safari 10, Uglify: SyntaxError: Cannot declare a let variable twice: 'e'
<!-- IMPORTANT: Please use the following link to create a new issue: https://nuxtjs.cmty.io/issues/new If your issue was not created using the app above, it will be closed immediately. -->

In middleware ,I can't user window or alert (window is not defined ) , what shoud i do to use them?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c6816">#c6816</a>)</em></sub></div>