alibaba / alibaba/serverless-vscode

TypeScript template just exits after being run

Open
#332 0 comments 0 reactions 1 assignee Claimed by @ChanDaoH View on GitHub
bug
Dominant language
TypeScript
Stars
289
Forks
38
PR merge metrics
No merged PRs in 30d

Description

**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](https://user-images.githubusercontent.com/87795522/171346228-da9f5101-af72-4acc-83c7-6cd273b93ff8.png)

**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
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.