Referencing the guidelines provided at
Encountering an error logged in console while executing yarn dev
:
ERROR ERROR in pages/index.vue:51:21 23:01:53
TS7031: Binding element '$axios' implicitly has an 'any' type.
49 | }
50 |
> 51 | async asyncData({ $axios }) {
| ^^^^^^
52 | const ip = await $axios.get('http://icanhazip.com')
53 | return { ip }
54 | }
Confirmed the presence of '@nuxtjs/axios'
in both my nuxt.config.js
and tsconfig.json
.
Can't figure out why this error suddenly appeared after previously working fine. Any insights or assistance would be greatly appreciated. Thanks!