Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,467,410
Community Members
 
Community Events
177
Community Groups

Forge using Typescript version 3.9.10?

Edited

Hello there,

after upgrading to forge-cli 4.0.0 Edit: Well I did some checks going back to version 3.0.0 and it did work so I thought this was the problem but after some time it doesn't work anymore in this version. I still have no idea why is this happening all of a sudden, but as it doesn't seem to be a Forge problem anymore (which I thought strange to begin with, to be honest) you can safely ignore this question unless you kindly wanted to give me help anyway. 

UPDATE: Actually after further investigation through "@forge/cli" deps, it seems like indeed Forge is using Typescript version 3.9.10. This fails to compile my code the moment I add TS capabilities to the wrapping forge-project of my Custom UI set up. (i.e. where the resolvers are placed). Is there any way to use a different Typescript compiler version? Am I bound to use javascript only for them? Is upgrading to TS 4+ something in the roadmap?

Original Post:

I can't compile my project anymore due to a typescript error while deploying. After analysing the error, it seems tuple types with labels are not recognised anymore, a feature which was introduced in this typescript version I mention IIRC. E.g:

type tuple = [name: string, surname: string] 

This will fail due to the labelled element with the following error:

 Screenshot 2022-02-26 at 12.17.19.png

As you see I cannot just stop using this feature because it is coming from a third party library which I need. Any insight into this matter would be appreciated.

1 answer

Hi @Daniel Platas ,

While I don't have a solution for you, I wanted to share this related thread in the Atlassian Developer community: https://community.developer.atlassian.com/t/using-alternate-version-of-typescript/53002

 

Feel free to post any Forge related questions in that community in the future. There is a Forge category for that and the team developing Forge keeps an eye on those threads.

 

Cheers,

Caterina

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events