Property 'body' does not exist on type 'Request'
将
ctx.request.body
改成
ctx.request['body']
koa功能失效
vscode在import Koa from 'koa'代码处有提示,需要加载新的包
npm install @types/koa
Cannot read property 'getQueryInterface' of undefined
在引入了sequelize-typescript包并new Sequelize时报的错
解决:
1.卸载当前sequelize-typescript的版本(npm uninstall sequelize-typescript --save)
2.执行npm install sequelize-typescript@next --save命令
3.执行 npm install @types/validator @types/bluebird --save-dev
参考: https://blog.csdn.net/DanielJackZ/article/details/94059798
网友评论