[@vue/compiler-sfc]`xxx` is a compiler macro and no longer needs to be imported.

Vue 3 project issue log:

[@vue/compiler-sfc] `defineProps` is a compiler macro and no longer needs to be imported.

[@vue/compiler-sfc] `defineEmits` is a compiler macro and no longer needs to be imported.

Encountered Vue 3 compile warnings

After Vue 3.2 version, it is no longer necessary to manually import defineProps and defineEmits, just use it directly, the official documentation has been updated

Remove the import statement as shown below

 

Guess you like

Origin blog.csdn.net/qq_41914185/article/details/123665413