Anyone got a worker deployed with pulumi?

The hello world example from here: https://developers.cloudflare.com/pulumi/tutorial/hello-world/ Gets me an error: Bad Request { "result": null, "success": false, "errors": [ { "code": 10021, "message": "Uncaught SyntaxError: Unexpected token 'export'\n at worker.js:2\n" } ], "messages": [] } Seems there was a deprecation of “WorkerScript” and the documentation is not updated to “WorkersScript” (with the “s”)
Cloudflare Docs
Deploy a Worker
In this tutorial, you will follow step-by-step instructions to deploy a Hello World application using Cloudflare Workers and Pulumi infrastructure as code (IaC) to familiarize yourself with the resource management lifecycle. In particular, you will create a Worker, a Route, and a DNS Record to access the application before cleaning up all the re...
1 Reply
Bas
BasOP2d ago
Created a PR here: https://github.com/cloudflare/cloudflare-docs/pull/22634 however, is there no way to deploy es6 module workers w/ pulumi?
GitHub
Update hello-world.mdx by sebst · Pull Request #22634 · cloudflar...
Summary module is not available on WorkersScript. Updated to Service Worker Syntax Documentation checklist The documentation style guide has been adhered to.

Did you find this page helpful?