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

Error when specifying config file with -c #135

Open
danielo515 opened this issue May 18, 2018 · 5 comments
Open

Error when specifying config file with -c #135

danielo515 opened this issue May 18, 2018 · 5 comments

Comments

@danielo515
Copy link

Hello, If I try to run tree-gateway with the -c option I get the following error:

Error starting gateway: Class constructor Configuration cannot be invoked without 'new'

This is how I am executing it:

treeGateway -c ./config/tree-gateway.yaml

@thiagobustamante
Copy link
Collaborator

Hi,

This error is generally related to some translation problem during typescript compilation. Can you confirm some informations:

  • Did you install the gateway through the command npm i -g tree-gateway?
  • What is your node version? Tree Gateway requires node 8 or greater to run.

@danielo515
Copy link
Author

Yes, I installed it using the global flag. My node version is 8.9.0

Thanks

@thiagobustamante
Copy link
Collaborator

The error occur only when you start it specifying the --config argument? If yes, can you send me your config file to help me to reproduce the problem?

@danielo515
Copy link
Author

Yes, exactly, except that it is the.-c option. The file works if I just allow tree-gateway picking it automatically (the file is name tree-gateway.yaml)

@thiagobustamante
Copy link
Collaborator

I could not reproduce it. Can you please send me your tree-gateway.yaml file?

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