Skip to content

Worker github-triggered build fails to deploy #9590

Closed
@0xalecks

Description

@0xalecks

What versions & operating system are you using?

na - this is happening in CF

Please provide a link to a minimal reproduction

No response

Describe the Bug

My worker is connected to github and using the Build feature. During deployment, I get this error:

20:57:42.891 | Total Upload: 640.35 KiB / gzip: 148.31 KiB
-- | --
20:57:45.028 | Your Worker has access to the following bindings:
20:57:45.031 | Binding                                                 Resource
20:57:45.032 | env.DB (REDACTED)                                       Hyperdrive Config
20:57:45.032 | env.ENVIRONMENT ("production")                          Environment Variable
20:57:45.032 |  
20:57:45.052 |  
20:57:45.156 | ✘ [ERROR] A request to the Cloudflare API (/accounts/ACCOUNTNUMBER/workers/scripts/site-com/versions) failed.
20:57:45.157 |  
20:57:45.157 | Uncaught TypeError: __esmMin is not a function
20:57:45.157 | at null.<anonymous> (index.js:32:18)
20:57:45.157 | [code: 10021]
20:57:45.158 |  
20:57:45.158 |  
20:57:45.158 | If you think this is a bug, please open an issue at: https://github.com/cloudflare/workers-sdk/issues/new/choose

I also get the error when running wrangler deploy locally (v4.20.0)

Please provide any relevant error logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething that isn't working

    Type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions