Can vue determine whether a component exists before an import component?

  1. because components are added dynamically in a directory, you need to determine whether a component exists before import, otherwise vue will report warn

add error information:

The reason for

clipboard.png
is that he made a mistake in import because he didn"t have this item2.form.vue file in my directory.

Mar.23,2021

No. You can open the vue-devtools tool to debug


  

encounter the same problem as you. Is there a solution

?
Menu