Apify Discord Mirror

Updated 5 months ago

latest version of node-ts does not work and latest commit on Github is ignored

At a glance

The community member is having issues with node-ts not understanding TypeScript files, causing their code to not compile to JavaScript that Node can run. They have managed to fix it locally using tsx instead, but tsx is not supported on apify.com, causing the run to fail immediately. Additionally, the community member cannot recognize the latest commit from their GitHub main branch being used in the build log. The community member has cleaned up all builds and versions, but the crawlee and Apify docs have not provided guidance on how to investigate this issue. The community member is seeking guidance from others who may have experienced similar bugs.

In the comments, another community member confirms that tsx is supported on the platform and that they have moved all their TypeScript templates to it from ts-node. They also suggest that if the commit used in the build log does not match the latest commit, the community member should try rebuilding without cache.

I have been having issues for quite a while now with fixing node-ts that suddenly don't understand TypeScript files and hence won't compile them to javascript that node can run. I have managed to fix it locally using tsx instead of node-ts but since tsx is not supported on apify.com the run fails immediately.

In addition when I look in the latest build log I can't recognize that the latest commit on my main branch from github is used. I have cleaned up every build and version so that only the latest build is present. The crawlee and apify docs have not given me some direction to investigate this.

This has been a major headache for a while now so I hope I can get some guidance πŸ™

Does anyone have similar bugs? πŸ€”
1
A
S
v
8 comments
just advanced to level 12! Thanks for your contributions! πŸŽ‰
hi casper, taking this to my team.
Hey, could you share some more information πŸ‘€ (ideally run links would help a bunch )
Also tsx is definitely supported on the platform! We've even moved all our TS templates to it from ts-node
In addition when I look in the latest build log I can't recognize that the latest commit on my main branch from github is used.
Hmm, the commit used should be in the first lines of the build log but if that commit doesn't match your latest commit, try also rebuilding without cache
(also feel free to ping me with the links!)
Thanks I will look into the links and send them in direct message to you πŸ™‚
Add a reply
Sign up and join the conversation on Discord