Skip to content

Unable to determine module type for application/source-map mime type #9818

Open
@tobad357

Description

@tobad357

What versions & operating system are you using?

Wrangler 4.22.0

Please provide a link to a minimal reproduction

No response

Describe the Bug

When trying to deploy to cloudflare with wrangler deploy we get the error

Unable to determine module type for application/source-map mime type

If we set --upload-source-maps=false then it goes away

Please provide any relevant error logs

--- 2025-07-02T07:46:56.554Z debug
Error: Unable to determine module type for application/source-map mime type
    at getModuleType (****node_modules/wrangler/wrangler-dist/cli.js:152060:13)
    at ****node_modules/wrangler/wrangler-dist/cli.js:152072:13
    at Array.map (<anonymous>)
    at convertWorkerBundleToModules (****node_modules/wrangler/wrangler-dist/cli.js:152071:33)
    at analyseBundle (****node_modules/wrangler/wrangler-dist/cli.js:152123:16)
    at handleStartupError (****node_modules/wrangler/wrangler-dist/cli.js:152244:28)
    at helpIfErrorIsSizeOrScriptStartup (****node_modules/wrangler/wrangler-dist/cli.js:152263:11)
    at deploy (****node_modules/wrangler/wrangler-dist/cli.js:152825:15)
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async Object.handler (****node_modules/wrangler/wrangler-dist/cli.js:80948:66)

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting Cloudflare responseAwaiting response from workers-sdk maintainer teambugSomething that isn't workingneeds reproductionNeeds reproduction from OP

    Type

    Projects

    Status

    Untriaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions