Skip to content

Property 'model' does not exist on type 'Application'. #1

@wind13

Description

@wind13

按照示例代码测试了一下,其中文件名 uset.ts 应该为 user.ts
类名首字母要大写,都改完了,还是有个错:

const result = await this.app.model.test.user.findOne();

这句报错:
src/app/controller/user.ts(5,35): error TS2339: Property 'model' does not exist on type 'Application'.

不知道怎么解决了……

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