Skip to content

New wrangler version errors out (wrangler.jsonc related?) #8977

Description

@kpcyrd

Hello!

I'm maintaining the wrangler and workerd packages in Arch Linux, when preparing the latest update I noticed the following error (slightly edited due to backticks in the output causing markdown issues).

The project I test with is explicitly a Rust project:

% wrangler dev

 ⛅️ wrangler 4.11.1
-------------------


✘ [ERROR] Missing entry-point to Worker script or to assets directory

  
  If there is code to deploy, you can either:
  - Specify an entry-point to your Worker script via the command line (ex: `npx wrangler dev
  src/index.ts`)
  - Or create a "wrangler.jsonc" file containing:
  
  \```
  {
    "name": "worker-name",
    "compatibility_date": "2025-04-16",
    "main": "src/index.ts"
  }
  \```
  
  
  If are uploading a directory of assets, you can either:
  - Specify the path to the directory of assets via the command line: (ex: `npx wrangler dev
  --assets=./dist`)
  - Or create a "wrangler.jsonc" file containing:
  
  \```
  {
    "name": "worker-name",
    "compatibility_date": "2025-04-16",
    "assets": {
      "directory": "./dist"
    }
  }
  \```
  


🪵  Logs were written to "/home/user/.config/.wrangler/logs/wrangler-2025-04-16_13-09-44_682.log"

This has worked before (with wrangler 4.9.1), I don't have a wrangler.jsonc file in my project, I can't define a index.ts entrypoint due to using Rust, and the asset error message is unclear if this should be:

  • my actual assets/ directory
  • my ./dist directory that wrangler has used before for build outputs

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions