Skip to content

Invalid symbol at the start of wrangler.jsonc #9938

@CammyBoi014

Description

@CammyBoi014

What versions & operating system are you using?

Windows 11, Wrangler 4.24.3

Please provide a link to a minimal reproduction

No response

Describe the Bug

I've made sure I'm using LF UTF-8 for encoding and the raw file shows no symbols before the opening '{', but I still am given an InvalidSymbol error on line 1 when I run deployment for my worker.
wrangler.jsonc looks like this:
{ "name": "official-cam", "compatability_date": "2025-07-11", "main": "src/main.tsx", "route": { "pattern": "official-cam.com", "custom_domain": true } }

Please provide any relevant error logs

...
2025-07-11T14:56:54.263Z Executing user deploy command: npx wrangler deploy
2025-07-11T14:56:56.626Z npm warn exec The following package was not found and will be installed: [email protected]
2025-07-11T14:57:13.954Z
2025-07-11T14:57:13.955Z ⛅️ wrangler 4.24.3
2025-07-11T14:57:13.955Z ───────────────────
2025-07-11T14:57:13.959Z
2025-07-11T14:57:14.078Z ✘ [ERROR] InvalidSymbol
2025-07-11T14:57:14.078Z
2025-07-11T14:57:14.079Z /opt/buildhome/repo/frontend/wrangler.jsonc:1:0:
2025-07-11T14:57:14.079Z 1 │ ���{
2025-07-11T14:57:14.080Z ╵ ^
2025-07-11T14:57:14.080Z
2025-07-11T14:57:14.080Z
2025-07-11T14:57:14.080Z If you think this is a bug, please open an issue at: https://github.com/cloudflare/workers-sdk/issues/new/choose
2025-07-11T14:57:14.081Z
2025-07-11T14:57:14.081Z
2025-07-11T14:57:14.175Z Failed: error occurred while running deploy command

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