Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarification on SF CLI use limitation with TypeScript #4880

Open
jparta opened this issue Nov 18, 2024 · 1 comment
Open

Clarification on SF CLI use limitation with TypeScript #4880

jparta opened this issue Nov 18, 2024 · 1 comment

Comments

@jparta
Copy link

jparta commented Nov 18, 2024

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
@wjhsf
Copy link
Contributor

wjhsf commented Nov 18, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants