Skip to content

npm run build error #922

@unixxiaobin

Description

@unixxiaobin

BUG描述

报:
node_modules/sequelize/types/model.d.ts:3458:76 - error TS1135: Argument expression expected.

3458 [Key in keyof M as InternalInferAttributeKeysFromFields<M, Key, Options>]: IsBranded<M[Key], typeof CreationAttributeBrand> extends true
~

node_modules/sequelize/types/model.d.ts:3458:127 - error TS1109: Expression expected.

3458 [Key in keyof M as InternalInferAttributeKeysFromFields<M, Key, Options>]: IsBranded<M[Key], typeof CreationAttributeBrand> extends true
~~~~~~~

node_modules/sequelize/types/model.d.ts:3461:1 - error TS1005: ',' expected.

3461 };
~

node_modules/sequelize/types/model.d.ts:3461:2 - error TS1005: ')' expected.

3461 };
~

Found 969 errors.
复现步骤

下载源代码

git clone https://github.com/thx/rap2-delos.git

切换目录

cd rap2-delos

安装依赖包

npm install

安装 TypeScript 编译包

npm install typescript -g

构建

注意:在 rap2-delos 主目录下操作
npm run build

期望结果

npm run build 报错

实际结果

截图

Image

环境

  • 是否是自建服务器?如果为自建,请提供操作系统版本
  • 如果是前端错误,请提供浏览器版本
  • 其它可能帮助我们排查问题的环境信息

附加信息

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