Skip to content

ts编译报错:Property 'setSearchVal' has no initializer and is not definitely assigned in the constructor. #14

Open
@cathy1024

Description

@cathy1024

问题描述:
TS2564: Property 'setSearchVal' has no initializer and is not definitely assigned in the constructor.

解决方法:修改tsconfig.json,compilerOptions下面加上"strictPropertyInitialization": false

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @cathy1024

        Issue actions

          ts编译报错:Property 'setSearchVal' has no initializer and is not definitely assigned in the constructor. · Issue #14 · SimonZhangITer/vue-typescript-dpapp-demo