Questions tagged «sequelize.js»

Sequelize库为Node.js提供了一个ORM(对象关系映射器),完全用JavaScript编写。为MySQL,MariaDB,SQLite,PostgreSQL和SQL Server提供简单的映射。


3
@ Types / Sequelize错误TS1086:无法在环境上下文中声明访问器
我有一个项目在运行'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” …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.