CA
spiritual-tomato
Apify.main(async () = {..}); no longer valid?
Hi, all!
I am trying to update an actor with a main.js file and no other .js files. It contains Apify.main(async () = {..}); syntax and has worked fine for a long time without any problems. The actor rebuilds without any issue, but when I try to run it, it fails with this error message:
Has something changed within the code library that no longer allows the Apify.main() function?
For reference, the most recent run of this actor is ZLxlBgaf0O6sPFFfy.
Any advice would be greatly appreciated. Thank you!
2 Replies
spiritual-tomatoOP•3y ago
Thank you so much! I have been able to rewrite our actors to use the 3.0 code.