alibaba / alibaba/serverless-vscode
TypeScript template just exits after being run
- 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**

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