-
Notifications
You must be signed in to change notification settings - Fork 14
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
wechaty-puppet-mock would failed with Cannot read property 'version' on first run #31
Comments
I can not reproduce your result. Mine is: $ WECHATY_PUPPET=wechaty-puppet-mock node examples/starter-bot.js
08:46:26 INFO Wechaty <wechaty-puppet-mock>(wechaty) start() v0.27.53 is starting...
08:46:26 INFO StarterBot Cancel(0) - https://api.qrserver.com/v1/create-qr-code/?data=https%3A%2F%2Fnot-exist.com
08:46:26 INFO StarterBot Starter Bot Started.
08:46:26 INFO StarterBot Contact<mock-name> login
08:46:29 INFO StarterBot Message#Text[🗣Contact<mock-name>] mock text
08:46:32 INFO StarterBot Message#Text[🗣Contact<mock-name>] mock text So I'd like to suggest that you can do a |
So unless you are installing from fresh, (or maybe added a new module), you cannot reproduce it. I've reproduced it many times like that, the most reliable way to reproduce is to have a brand new wechaty module installation. |
Here is another log, from another brand new wechaty module installation:
|
What do you mean "brand new"? Please provide the details about which version you had installed, with your re-producible install scripts. |
Ok, I guess I had catch it in wechaty package.json files. I had specified the mock version in it before. Will remove it and publish a new version. |
Should be fixed in Wechaty v0.28, please try the latest master branch. Thanks for reporting this problem! |
|
That's because this issue should have already been fixed. Please let me know if you have any trouble from the latest master branch code, or Wechaty v0.28 or above. |
I get the latest Wechaty v0.28 but am still seeing the problem:
And again, when run for the 2nd time, it is be fine. |
Interesting. I'll look in to it later. |
The
wechaty-puppet-mock
would failed with Cannot read property 'version' on first run.Here is the detailed log:
node_modules
directory, it seems.Don't know if it is specific to
wechaty-puppet-mock
or it is underlyingwechaty
moduleswechaty/dist/src/puppet-manager.js
though, as I can't test online.PS. my env:
The text was updated successfully, but these errors were encountered: