-
## DESC
用 yarn 安装新的模块会出现这个错误,一定要删除 node_modules 才可以继续使用
```
D:\yy\beework\web\branches\readonline>yarn start
yarn start v0.27.5
$ node development.js
TypeError: instance.startServer is not a fun…
ckken updated
7 years ago
-
## DESC
服务压测时,接口已经挂掉,
但是日志显示一直是数据库连接操作
### ENV
OS Platform: win10
Node.js Version:8.1
ThinkJS Version:3.0
### code
```
pm2最后的日志,接口已经无法访问,但是pm2 显示服务还是运行,并且日志如下:
0|producti | [2017…
-
## DESC
mongoose的用法说明比较简单,希望可以加入example
遇到的问题:
1.根据[think-mongoose](https://github.com/thinkjs/think-mongoose),save()方法不可用,该如何保存数据?
2.schema 的用法
个人的问题代码示例
```js
async indexAction() {
…
-
## DESC
因为我有需求是需要传递不同的参数,多次使用中间件的。 能不能动态创建中间件? 或者说多次传递不同参数使用中间件的解决办法是什么?
## ENV
Platform: 3.0
Node.js Version: 8.1.2
ThinkJS Version: 3.0
-
## DESC
`process.send('think-cluster-reload-workers')` 不起作用
## ENV
Platform:
Node.js Version:
3.0
ThinkJS Version:
-
## DESC
> thinkjs-application@1.0.0 start /home/dashuai/workspace/gatedLaunch
> node development.js
{ Error: Cannot find module './lib/model.js'
at Function.Module._resolveFilename (module…
-
#### [去哪儿网迷你React的研发心得](https://segmentfault.com/a/1190000011235844)
去哪儿对于React框架的简化实践作品[QReact](https://github.com/YMFE/qreact)
#### [Upcoming TypeScript Changes in Vue 2.5](https://medium.com/…
-
## DESC
```js
// src/home/model/index.js
module.exports = class extends think.Model {
async testModel(id){
console.warn(id)
}
};
```
```js
// src/home/controller/base.js
module…
liqqs updated
7 years ago
-
thinkjs的rest性能如何,是否比普通controller要快一些.与node-restify比较如何.
因为我客户端准备采用vue单页面,与服务器交互只采用rest方式,所以有此一问.
-
## DESC
我用了两种写法,可是都没有得到效果! 请指教! @welefen
写法一
```
{{item.created_at|think.datetime()}}
```
写法二
```
{{think.datetime(item.updated_at,"YYYY-MM-DD")}}
```
提示我: ```Error: Unable to call `t…