Skip to content

cloudflare 构建报错了 #14

@Tyrone2333

Description

@Tyrone2333

已链接 d1 数据库, 重新构建报错

构建命令:无
部署命令:npx wrangler deploy
版本命令:npx wrangler versions upload
根目录:/

2025-07-02T08:58:21.717Z	Initializing build environment...
2025-07-02T08:58:30.201Z	Success: Finished initializing build environment
2025-07-02T08:58:30.347Z	Cloning repository...
2025-07-02T08:58:31.564Z	No build output detected to cache. Skipping.
2025-07-02T08:58:31.564Z	No dependencies detected to cache. Skipping.
2025-07-02T08:58:31.568Z	Detected the following tools from environment: bun@1.2.15, nodejs@22.16.0
2025-07-02T08:58:31.572Z	Installing project dependencies: bun install
2025-07-02T08:58:31.878Z	bun install v1.2.15 (df017990)
2025-07-02T08:58:31.933Z	Resolving dependencies
2025-07-02T08:58:35.339Z	Resolved, downloaded and extracted [334]
2025-07-02T08:58:36.044Z	Saved lockfile
2025-07-02T08:58:36.045Z	
2025-07-02T08:58:36.045Z	+ wrangler@3.114.10 (v4.22.0 available)
2025-07-02T08:58:36.046Z	
2025-07-02T08:58:36.046Z	61 packages installed [4.28s]
2025-07-02T08:58:36.071Z	Executing user deploy command: npx wrangler deploy
2025-07-02T08:58:38.465Z	
2025-07-02T08:58:38.466Z	 ⛅️ wrangler 3.114.10 (update available 4.22.0)
2025-07-02T08:58:38.466Z	-----------------------------------------------
2025-07-02T08:58:38.466Z	
2025-07-02T08:58:38.553Z	▲ [WARNING] The version of Wrangler you are using is now out-of-date.
2025-07-02T08:58:38.553Z	
2025-07-02T08:58:38.553Z	  Please update to the latest version to prevent critical errors.
2025-07-02T08:58:38.554Z	  Run `npm install --save-dev wrangler@4` to update to the latest version.
2025-07-02T08:58:38.554Z	  After installation, run Wrangler with `npx wrangler`.
2025-07-02T08:58:38.554Z	
2025-07-02T08:58:38.554Z	
2025-07-02T08:58:38.569Z	
2025-07-02T08:58:38.572Z	✘ [ERROR] Missing entry-point to Worker script or to assets directory
2025-07-02T08:58:38.572Z	
2025-07-02T08:58:38.572Z	  
2025-07-02T08:58:38.572Z	  If there is code to deploy, you can either:
2025-07-02T08:58:38.573Z	  - Specify an entry-point to your Worker script via the command line (ex: `npx wrangler deploy src/index.ts`)
2025-07-02T08:58:38.573Z	  - Or create a "wrangler.jsonc" file containing:
2025-07-02T08:58:38.573Z	  
2025-07-02T08:58:38.575Z	  ```
2025-07-02T08:58:38.575Z	  {
2025-07-02T08:58:38.575Z	    "name": "worker-name",
2025-07-02T08:58:38.575Z	    "compatibility_date": "2025-07-02",
2025-07-02T08:58:38.575Z	    "main": "src/index.ts"
2025-07-02T08:58:38.575Z	  }
2025-07-02T08:58:38.575Z	  ```
2025-07-02T08:58:38.576Z	  
2025-07-02T08:58:38.576Z	  
2025-07-02T08:58:38.576Z	  If are uploading a directory of assets, you can either:
2025-07-02T08:58:38.576Z	  - Specify the path to the directory of assets via the command line: (ex: `npx wrangler deploy --assets=./dist`)
2025-07-02T08:58:38.576Z	  - Or create a "wrangler.jsonc" file containing:
2025-07-02T08:58:38.576Z	  
2025-07-02T08:58:38.577Z	  ```
2025-07-02T08:58:38.577Z	  {
2025-07-02T08:58:38.577Z	    "name": "worker-name",
2025-07-02T08:58:38.577Z	    "compatibility_date": "2025-07-02",
2025-07-02T08:58:38.578Z	    "assets": {
2025-07-02T08:58:38.578Z	      "directory": "./dist"
2025-07-02T08:58:38.578Z	    }
2025-07-02T08:58:38.578Z	  }
2025-07-02T08:58:38.578Z	  ```
2025-07-02T08:58:38.578Z	  
2025-07-02T08:58:38.578Z	
2025-07-02T08:58:38.578Z	
2025-07-02T08:58:38.579Z	
2025-07-02T08:58:38.579Z	Cloudflare collects anonymous telemetry about your usage of Wrangler. Learn more at https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/telemetry.md
2025-07-02T08:58:38.601Z	🪵  Logs were written to "/opt/buildhome/.config/.wrangler/logs/wrangler-2025-07-02_08-58-37_744.log"
2025-07-02T08:58:39.402Z	Failed: error occurred while running deploy command

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions