Skip to content

用src引入ts文件报错 #1658

Closed
Closed
@slipkinem

Description

@slipkinem

Version

3.0.0-rc.3

Reproduction link

http://www.idontunderstand.com

Steps to reproduce

将ts文件用<script src='./index.ts' lang="ts"></script>引入,报错: File 'xxx.vue' is not a module,改回去就好了。

What is expected?

预期和写在script便签里面的一样运行。

What is actually happening?

如果这样不能引入ts文件的话,那么我应该怎么去定义ref的类型


thx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions