NuxtJS Auth error with property doesn't exist
问题 I've just installed @nuxtjs/auth on my project. I get Property '$auth' does not exist on type 'AuthLoginPage' class. Method login on login class page this.$auth.loginWith('local', { data: { username: 'your_username', password: 'your_password' } }); My nuxt.config.ts modules: [ // Doc: https://axios.nuxtjs.org/usage '@nuxtjs/axios', '@nuxtjs/auth', '@nuxtjs/pwa', ], ... auth: { strategies: { local: { endpoints: { login: { url: 'http://127.0.0.1:3001/users/login', method: 'post', propertyName: