Skip to content

TypeScript template just exits after being run #332

@QYongHao

Description

@QYongHao

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions