Vue-next: Cannot use namespace 'Vue' as a type Error.

Created on 28 Apr 2020  路  1Comment  路  Source: vuejs/vue-next

Version

3.0.0-beta.1

Reproduction link

https://github.com/vuejs/vue-next

Steps to reproduce

$ vue create sample-app
$ vue add vue-next

What is expected?

none

What is actually happening?

ERROR in /Users/xxxx/sample-vue3.0/src/shims-tsx.d.ts(8,36):
:36 Cannot use namespace 'Vue' as a type.
     6 |     interface Element extends VNode {}
     7 |     // tslint:disable no-empty-interface
  >  8 |     interface ElementClass extends Vue {}
       |                                    ^
     9 |     interface IntrinsicElements {
    10 |       [elem: string]: any;
    11 |     }
ERROR in /Users/xxxx/sample-vue3.0/src/shims-tsx.d.ts(10,7):
10:7 Duplicate string index signature.
     8 |     interface ElementClass extends Vue {}
     9 |     interface IntrinsicElements {
  > 10 |       [elem: string]: any;
       |       ^
    11 |     }
    12 |   }
    13 | }

Most helpful comment

Delete shims-tsx.d.ts In Your src Folder

>All comments

Delete shims-tsx.d.ts In Your src Folder

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cexbrayat picture cexbrayat  路  3Comments

doman412 picture doman412  路  3Comments

crutchcorn picture crutchcorn  路  3Comments

cexbrayat picture cexbrayat  路  4Comments

NMFES picture NMFES  路  3Comments