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

--expose-http2 node.js CLI argument doesn't seem to work #416

Closed
kemalcany opened this issue Aug 30, 2017 · 1 comment
Closed

--expose-http2 node.js CLI argument doesn't seem to work #416

kemalcany opened this issue Aug 30, 2017 · 1 comment

Comments

@kemalcany
Copy link

Hi guys,

Thanks for maintaining this awesome project!

I couldn't get ts-node to start my server with the --expose-http2 node.js default CLI argument (from v.8.4.0 onward, currently in experimental stage)

Expected behaviour is the server to start and give a warning like below.
(node:8404) ExperimentalWarning: The http2 module is an experimental API.

But right now, nothing happens. No error messages return and the server script is not executed.

C:\>ts-node --expose-http2 server.ts
>
{}
>

I am unable to provide a working repo unfortunately, but it should be pretty simple to test it with any existing repo (in an environment with node 8.4.0) just by putting the argument (--expose-http2)

Could this behaviour is because the experimental arguments are not supported?

Thanks for your help!!!

FYI: ts-node version 3.3.0

@blakeembrey
Copy link
Member

You'll need to add it to the list here: https://github.com/TypeStrong/ts-node/blob/master/src/bin.ts#L19. It'll be released with 4.0 of ts-node. For now, you can use node -r ts-node/register instead.

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

No branches or pull requests

2 participants