Static GitHub Issues

[1181] Middleware in client side: context.app is undefined (1.0.0 rc2)

prev: Navigating back should retain the scroll position.
next: TypeError: Nuxt is not a constructor

Hi, using a simple middleware:

export default function (context) {
  if (context.isClient) console.log(context.app)
}

the <code>app</code> value is now <code>undefined</code> when the middleware is executed on the client side. Regards.

<!--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/c1037">#c1037</a>)</em></sub></div>