error TS2339: Property 'x' does not exist on type 'Y'

前端 未结 6 1201
忘掉有多难
忘掉有多难 2020-12-01 12:02

I don\'t understand why this code generates TypeScript error. (It\'s not the original code and is a bit derived, so please ignore the non-sense in the example):



        
6条回答
  •  再見小時候
    2020-12-01 12:22

    I was getting this error on Vue 3. It was because defineComponent must be imported like this:

    
    

提交回复
热议问题