prodigy-anthill
CDCloudflare Developers
•Created by prodigy-anthill on 7/29/2024 in #workers-help
Migrating an old worker to module format
26 replies
CDCloudflare Developers
•Created by prodigy-anthill on 7/29/2024 in #workers-help
Migrating an old worker to module format
Actually, it did more than that, looks like it's trying to add some es compatibiilty
26 replies
CDCloudflare Developers
•Created by prodigy-anthill on 7/29/2024 in #workers-help
Migrating an old worker to module format
It did add some code for me, for example, first line of the worker is
And last line is now
I didn't add these...
26 replies
CDCloudflare Developers
•Created by prodigy-anthill on 7/29/2024 in #workers-help
Migrating an old worker to module format
Now I just need to understand why my worker is not working, but that might have to do with the changes to the code I did
26 replies
CDCloudflare Developers
•Created by prodigy-anthill on 7/29/2024 in #workers-help
Migrating an old worker to module format
It seems that has done the trick and now it is a module syntax worker...
26 replies
CDCloudflare Developers
•Created by prodigy-anthill on 7/29/2024 in #workers-help
Migrating an old worker to module format
Haven't tried that, will try to deploy from wrangler
26 replies
CDCloudflare Developers
•Created by prodigy-anthill on 7/29/2024 in #workers-help
Migrating an old worker to module format
And package.json
26 replies
CDCloudflare Developers
•Created by prodigy-anthill on 7/29/2024 in #workers-help
Migrating an old worker to module format
I tried working with wrangler on the project by running
And this is the toml file: (some identifiers renamed)
26 replies
CDCloudflare Developers
•Created by prodigy-anthill on 7/29/2024 in #workers-help
Migrating an old worker to module format
I did try to create a new worker, it was created with the module syntax and that was working okay, but looks like the old worker is stuck on the worker syntax
26 replies
CDCloudflare Developers
•Created by prodigy-anthill on 7/29/2024 in #workers-help
Migrating an old worker to module format
So it's kinda stuck on the old syntax
26 replies
CDCloudflare Developers
•Created by prodigy-anthill on 7/29/2024 in #workers-help
Migrating an old worker to module format
This is because it doesn't understand that the worker now has this syntax:
26 replies
CDCloudflare Developers
•Created by prodigy-anthill on 7/29/2024 in #workers-help
Migrating an old worker to module format
26 replies
CDCloudflare Developers
•Created by prodigy-anthill on 7/29/2024 in #workers-help
Migrating an old worker to module format
26 replies
CDCloudflare Developers
•Created by prodigy-anthill on 7/29/2024 in #workers-help
Migrating an old worker to module format
Yes
26 replies
CDCloudflare Developers
•Created by prodigy-anthill on 7/29/2024 in #workers-help
Migrating an old worker to module format
26 replies
CDCloudflare Developers
•Created by prodigy-anthill on 7/29/2024 in #workers-help
Migrating an old worker to module format
Thanks for replying. It doesn't look like it auto-detected anything
26 replies
CDCloudflare Developers
•Created by prodigy-anthill on 7/29/2024 in #workers-help
Migrating an old worker to module format
Anyone know how to upgrade an existing worker to use module format ?
26 replies
CDCloudflare Developers
•Created by prodigy-anthill on 7/29/2024 in #workers-help
Migrating an old worker to module format
26 replies
CDCloudflare Developers
•Created by prodigy-anthill on 7/29/2024 in #workers-help
Migrating an old worker to module format
My worker only have a single file in the editor (see image)
26 replies