TreeGateway / tree-gateway

This is a full featured and free API Gateway
http://treegateway.com
MIT License
189 stars 42 forks source link

Error when specifying config file with -c #135

Open danielo515 opened 6 years ago

danielo515 commented 6 years ago

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 commented 6 years ago

Hi,

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

danielo515 commented 6 years ago

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

Thanks

thiagobustamante commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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