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

TypeScript template just exits after being run #332

Open
QYongHao opened this issue Jun 1, 2022 · 0 comments
Open

TypeScript template just exits after being run #332

QYongHao opened this issue Jun 1, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@QYongHao
Copy link

QYongHao commented Jun 1, 2022

Describe the bug
TypeScript server exits immediately after starting.

To Reproduce

  1. Create TypeScript function in VSCode.
  2. Run 'npm install' in TypeScript directory
  3. Click on 'Local Run' to deploy TypeScript server locally

Expected behavior
TypeScript server should run indefinitely until the program is exited, accepting requests to the server.

Screenshots
image

Desktop (please complete the following information):

  • OS: Windows 10 (WSL2)
  • VSCode Version: 1.67.2
  • Aliyun Serverless Extension Version: 1.27.19

Additional context
Couldn't start TypeScript server at all until I ran 'npm install' to generate the node_modules.
Please provide better documentation on running TypeScript template locally because the regular method does not work.
Was able to run the server correctly with:

npm install
./node_modules/ts-node/dist/bin.js server.ts
@QYongHao QYongHao added the bug Something isn't working label Jun 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants