🍔 A Node.js Serverless Framework for front-end/full-stack developers. Build the application for next decade. Works on AWS, Alibaba Cloud, Tencent Cloud and traditional VM/Container. Super easy integrate with React and Vue. 🌈
NotFoundError: redis in class IndexController is not valid in current context
at MidwayContainer.getAsync (/Users/yuistack/Documents/calibur/fc/node_modules/@midwayjs/core/dist/context/applicationContext.js:174:19)
at MidwayContainer.getAsync (/Users/yuistack/Documents/calibur/fc/node_modules/@midwayjs/core/dist/context/midwayContainer.js:404:33)
at MidwayRequestContainer.getAsync (/Users/yuistack/Documents/calibur/fc/node_modules/@midwayjs/core/dist/context/requestContainer.js:75:32)
at RefResolver.resolveAsync (/Users/yuistack/Documents/calibur/fc/node_modules/@midwayjs/core/dist/context/managedResolverFactory.js:105:38)
at ManagedResolverFactory.resolveManagedAsync (/Users/yuistack/Documents/calibur/fc/node_modules/@midwayjs/core/dist/context/managedResolverFactory.js:298:25)
at ManagedResolverFactory.createAsync (/Users/yuistack/Documents/calibur/fc/node_modules/@midwayjs/core/dist/context/managedResolverFactory.js:444:44)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at MidwayRequestContainer.getAsync (/Users/yuistack/Documents/calibur/fc/node_modules/@midwayjs/core/dist/context/requestContainer.js:67:29)
at FaaSStarter.invokeHandler (/Users/yuistack/Documents/calibur/fc/node_modules/@midwayjs/faas/src/starter.ts:199:23) {
我仿照 @midway/orm 的代码写了一个包 @calibur/fass,但是在 sign 调用的时候却报错了:
npm run dev
localhost:3000/hello
代码是仿照 midwayORM 写的,不知道为什么会报这个错,能帮忙看看吗?