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

Unable to run the example code #18

Closed
ferrao opened this issue Nov 18, 2016 · 7 comments
Closed

Unable to run the example code #18

ferrao opened this issue Nov 18, 2016 · 7 comments
Labels

Comments

@ferrao
Copy link

ferrao commented Nov 18, 2016

/Users/ferrao/Dev/hapijs-status-monitor/examples/node_modules/hapijs-status-monitor/src/helpers/socket-io-init.js:4
let io;
^^^
SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:387:25)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (/Users/ferrao/Dev/hapijs-status-monitor/examples/node_modules/hapijs-status-monitor/src/middleware-wrapper.js:5:22)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)
@danielbayerlein
Copy link
Collaborator

danielbayerlein commented Nov 18, 2016

@ferrao Which version of

  • Node.js
  • hapijs-status-monitor

do you use?

@ferrao
Copy link
Author

ferrao commented Nov 18, 2016

I have tried it with node v4.4.0, v4.5.0 and v5.8.0.

With regards to hapijs-status-monitor i am trying to run the examples from a clone of the master branch.

@danielbayerlein
Copy link
Collaborator

@ferrao I will add support for Node.js v4 and v5 ASAP. Thanks for the report!

@danielbayerlein
Copy link
Collaborator

Fixed with c3fa6d4.

@danielbayerlein
Copy link
Collaborator

@ferrao Please try again.

@ferrao
Copy link
Author

ferrao commented Nov 18, 2016

The examples work great @danielbayerlein , thank you for the prompt assistance!
Unfortunately I am still unable to use it on my project as i am getting another issue, check #19 .

@danielbayerlein
Copy link
Collaborator

hapijs-status-monitor 0.5.0 published 🎉

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

No branches or pull requests

2 participants