lwc icon indicating copy to clipboard operation
lwc copied to clipboard

Clarification on SF CLI use limitation with TypeScript

Open jparta opened this issue 1 year ago • 1 comments

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.

  • Using TypeScript with the Salesforce CLI
  • Source map debugging using TypeScript
  • Non-Salesforce types
  • Type definitions for custom Salesforce fields and objects

jparta avatar Nov 18 '24 13:11 jparta

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.

wjhsf avatar Nov 18 '24 20:11 wjhsf