R
R
reasonov2021-12-01 12:55:55
Vue.js
reasonov, 2021-12-01 12:55:55

How to show eslint defineProps in script setup?

Good evening, I'm switching to Vue3 and ran into a problem. The documentation says that to get props in a component, you need to use defineProps, while you don’t need to import anything. I'm trying to do it according to the docs, but ESLint swears that defineProps was not found. If you import this function into the component, then everything works, but I really would not want to import the function for props into each component. Who knows how to solve the problem?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question