salesforce / lwc

⚡️ LWC - A Blazing Fast, Enterprise-Grade Web Components Foundation
https://lwc.dev
Other
1.64k stars 393 forks source link

Clarification on SF CLI use limitation with TypeScript #4880

Open jparta opened 6 days ago

jparta commented 6 days ago

What does the limitation regarding using Salesforce CLI with TypeScript for LWC development mean in practice? Does this mean the source cannot be deployed to org?

The guide is here: https://developer.salesforce.com/docs/platform/lwc/guide/ts.html

TypeScript Limitations

For now, LWC support for TypeScript excludes these use cases.

wjhsf commented 6 days ago

Does this mean the source cannot be deployed to org?

That's correct. You currently can only deploy JavaScript to your org, so you must compile any TypeScript code before deploying.