Static GitHub Issues

[3145] [edge] build context properties

prev: Nuxt generate failed. no html files in dist dir
next: [edge] Using ESM modules in config crashes watcher

Version

edge

Reproduction link

https://medium.com/nuxt/nuxt-2-is-coming-oh-yeah-212c1a9e1a67

Steps to reproduce

In the Nuxt 2.0 "upcoming" post on Medium it is written:

Removed context.isServer and context.isClient (Use context.client and context.server) Removed options.dev in build.extend() (Use options.isDev)

But when I run

 extend (config, ctx) {
      console.log(ctx)
      // ...
}

it returns:

{ isDev: false, isServer: true }
{ isDev: false, isClient: true }

So either statement one or statement two from the post is false

What is expected ?

.

What is actually happening?

.

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