我有一个项目,当我运行“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;
~~~~
Run Code Online (Sandbox Code Playgroud)
我的版本是:
该项目在 nodemon 上运行良好,但在我尝试编译打字稿时失败。有人知道这个错误吗?
谢谢。