Skip to content

tsc doesnt transform every static readonly from a file #48453

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

Closed
romain22222 opened this issue Mar 27, 2022 · 4 comments
Closed

tsc doesnt transform every static readonly from a file #48453

romain22222 opened this issue Mar 27, 2022 · 4 comments
Labels
Question An issue which isn't directly actionable in code

Comments

@romain22222
Copy link

romain22222 commented Mar 27, 2022

Bug Report

🔎 Search Terms

tsc, static readonly variables, missing transformations

🕗 Version & Regression Information

  • This happen in version 4.3.2
  • I was unable to test this on prior versions because the problematic variables weren't in the file prior this version

⏯ Playground Link

https://github.com./DraftBot-A-Discord-Adventure/DraftBot/tree/slash-commands

💻 Code

Actually, the relevant code is in Constants.ts.

🙁 Actual behavior

Some static readonly are getting ignored by tsc, and everytime the same ones (take a look at static readonly XP)

🙂 Expected behavior

I'd expect that everything is transformed from ts to js

@MartinJohns
Copy link
Contributor

You're not assigning anything to your static variable, so there's nothing to transform to JS.

@BastLast
Copy link

We got the problem and fixed it 🙃 this issue can be closed thanks !

@MartinJohns
Copy link
Contributor

Related: #27899

@RyanCavanaugh RyanCavanaugh added the Question An issue which isn't directly actionable in code label Mar 28, 2022
@typescript-bot
Copy link
Collaborator

This issue has been marked as 'Question' and has seen no recent activity. It has been automatically closed for house-keeping purposes. If you're still waiting on a response, questions are usually better suited to stackoverflow or the TypeScript Discord community.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Question An issue which isn't directly actionable in code
Projects
None yet
Development

No branches or pull requests

5 participants