Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mockConfigFileWatcher.close is not a function #1

Closed
JZLeung opened this issue Aug 22, 2016 · 5 comments
Closed

mockConfigFileWatcher.close is not a function #1

JZLeung opened this issue Aug 22, 2016 · 5 comments

Comments

@JZLeung
Copy link

JZLeung commented Aug 22, 2016

/var/www/html/puer_conf/node_modules/puer-mock/index.js:115
mockConfigFileWatcher.close();
^

TypeError: mockConfigFileWatcher.close is not a function

@ufologist
Copy link
Owner

@JZLeung 你用的 node 是什么版本的?

我自己测试的 node v4.4.7 window7 没有这个问题... 请给出具体的运行环境

@JZLeung
Copy link
Author

JZLeung commented Aug 23, 2016

node 4.2.6
ubuntu 16.04

@JZLeung
Copy link
Author

JZLeung commented Aug 23, 2016

而且,只要修改了 _mockserver.json 这个文件,就会报错,服务自动停止,需要手动启动。

{ port: 5000, addon: '/var/www/html/_mockserver.js' }
log:     watcher on!!    2016-08-23  17:11:35
   info  - socket.io started
log:     addon update !!!/var/www/html/_mockserver.js    2016-08-23  17:11:35
log:     server start at localhost:5000      2016-08-23  17:11:35
log:     puer will launch your default browser   2016-08-23  17:11:39
/var/www/html/node_modules/puer-mock/index.js:115
        mockConfigFileWatcher.close();
                              ^

TypeError: mockConfigFileWatcher.close is not a function

@liudanking
Copy link

node v4.5.0 comes up with the same issue on linux x64.

@ufologist
Copy link
Owner

我在 OSX 系统中重现了这个问题, 已经在 1.2.0 版本中解决了, 感谢你的反馈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants