Skip to content

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

@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

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions