MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.23k stars 21.39k forks source link

Is Typescript ^5.0 compatible with Azure functions? #120371

Open IDrumsey opened 7 months ago

IDrumsey commented 7 months ago

The configure your environment section seen here indicates that you need Typescript 4.0, but when creating the project, the package.json that's generated has typescript: "^4.0.0" which includes version 5 I believe. Whereas with the Node.js requirement it says:

Node.js 18.x or above.

Typescript doesn't have that "or above" clarification, so I'm just wondering if we can use Typescript 5 with Azure Functions.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

RamanathanChinnappan-MSFT commented 7 months ago

@IDrumsey Thanks for your feedback! We will investigate and update as appropriate.

IDrumsey commented 5 months ago

Any update on this?

ggailey777 commented 4 months ago

@IDrumsey this is a great question. I would assume that 4+ (which would include 5.x) would be correct here for the TypeScript module, but I'm not certain. (The typescript: "^4.0.0" designation does support all minor versions of 4.x up to but not including the 5.x major version.)

+ @MadhuraBharadwaj-MSFT and/or @ejizba who would know for certain about this.

ejizba commented 3 months ago

We don't officially support TypeScript 5 yet. You can try and honestly I hope it "just works" but we haven't gone through the validation ourselves yet. I created the following issue to track in our own repo: https://github.com/Azure/azure-functions-nodejs-library/issues/269

IDrumsey commented 3 months ago

Here's to hoping it works lol 🥂