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

SyntaxError: Unexpected identifier #1

Closed
samuelbeck opened this issue Jul 24, 2018 · 4 comments
Closed

SyntaxError: Unexpected identifier #1

samuelbeck opened this issue Jul 24, 2018 · 4 comments

Comments

@samuelbeck
Copy link

samuelbeck commented Jul 24, 2018

I was playing around with your library, but I get the following error when I try to start the service:

.../node_modules/feathers-opentracing/hooks.js:4
  return async hook => {
               ^^^^
SyntaxError: Unexpected identifier
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (.../node_modules/feathers-opentracing/index.js:2:84)

Could you help me out with it?

@dekelev
Copy link
Owner

dekelev commented Jul 27, 2018

What's the version of your NodeJS? it seems like your version still doesn't support this kind of syntax.

@samuelbeck
Copy link
Author

You were right! I updated my nodejs installation from 6.10 to the lastest version and now everything works like a charm. Thanks for the quick help and the project, it makes my work a bit easier.

@dekelev dekelev closed this as completed Jul 27, 2018
@dekelev
Copy link
Owner

dekelev commented Jul 29, 2018

Make sure to check https://github.com/dekelev/feathers-opentracing/releases

@samuelbeck
Copy link
Author

Awesome! My feathers services are working together with some Spring Boot services and every transaction over multiple services is shown as one trace now after your update. The child references between feathers spans and spring boot spans seemed to be broken before.

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

2 participants