NuxtN
Nuxt4y ago
4 replies
Sam K

Typescript complains about props not being used in the template if not used as props.theprop

Hi, I am using nuxt with ts and vue volar extension with the typescript plugin.

as shown in the fist screenshot that when accessing the prop directly from the template as
{{ someProp }}
it complains about the const
props
is not being used, the value in the app shows but ESLINT crashes, but if I use it
{{ props.someProp }}}
works fine and ESLINT does not complain.

Any thoughts on this issue

Thanks
Screenshot_2022-12-21_at_16.18.52.png
Screenshot_2022-12-21_at_16.18.07.png
Screenshot_2022-12-21_at_16.22.31.png
Was this page helpful?