Static GitHub Issues

[370] "this" inside of a method returns an unexpected Object

prev: TypeError: arguments[i].apply is not a function when adding a plugin
next: How does "precommit" script work in package.json?

Take the following:

methods: {
  login: () => {
    console.log(this)
  }
}

returns and Object holding: __esModule: true, default: Object

I am not able to retrieve the Vue instance and cannot figure out why.

Thanks in advance.

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