Skip to content

(TypeScript) Property 'msg' has no initializer and is not definitely assigned in the constructor. #834

Closed
@medz

Description

@medz

Version

3.0.0-alpha.12

Steps to reproduce

  1. vue create hello-world 使用 TypeScript 和使用 class-style 风格组件
  2. cd hello-world
  3. yarn serve or yarn build

What is expected?

Success

What is actually happening?

提示:

Property 'msg' has no initializer and is not definitely assigned in the constructor.

没有修改任何文件,创建默认项目后运行报错。

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