我有一个项目在运行'tsc'时显示此错误:
../modules/node_modules/sequelize/types/lib/transaction.d.ts:33:14 - error TS1086: An accessor cannot be declared in an ambient context.
33 static get LOCK(): LOCK;
~~~~
../modules/node_modules/sequelize/types/lib/transaction.d.ts:40:7 - error TS1086: An accessor cannot be declared in an ambient context.
40 get LOCK(): LOCK;
~~~~
我的版本是:
- “ @ types / sequelize”:“ ^ 4.28.6”
- “ sequelize”:“ ^ 5.8.10”
- “ sequelize-typescript”:“ 1.0.0-beta.4”
该项目可与nodemon正常运行,但在尝试编译打字稿时失败。有人知道这个错误吗?
谢谢。