8000 发布到cloudflare workers报错 · Issue #18 · ccbikai/hacker-news · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

发布到cloudflare workers报错 #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
highkay opened this issue Mar 25, 2025 · 5 comments
Open

发布到cloudflare workers报错 #18

highkay opened this issue Mar 25, 2025 · 5 comments

Comments

@highkay
Copy link
highkay commented Mar 25, 2025
2025-03-25T17:25:34.864Z	Initializing build environment...
2025-03-25T17:25:40.858Z	Success: Finished initializing build environment
2025-03-25T17:25:41.123Z	Cloning repository...
2025-03-25T17:25:42.975Z	Detected the following tools from environment: nodejs@20.19.0, pnpm@9.10.0
2025-03-25T17:25:42.975Z	Installing nodejs 20.19.0
2025-03-25T17:25:48.660Z	Installing project dependencies: pnpm install --frozen-lockfile
2025-03-25T17:25:48.826Z	! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-9.15.5.tgz
2025-03-25T17:25:50.520Z	Lockfile is up to date, resolution step is skipped
2025-03-25T17:25:50.680Z	Progress: resolved 1, reused 0, downloaded 0, added 0
2025-03-25T17:25:50.884Z	Packages: +1083
2025-03-25T17:25:50.884Z	++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2025-03-25T17:25:51.683Z	Progress: resolved 1083, reused 0, downloaded 17, added 10
2025-03-25T17:25:52.683Z	Progress: resolved 1083, reused 0, downloaded 121, added 109
2025-03-25T17:25:53.685Z	Progress: resolved 1083, reused 0, downloaded 131, added 120
2025-03-25T17:25:55.698Z	Progress: resolved 1083, reused 0, downloaded 132, added 120
2025-03-25T17:25:56.702Z	Progress: resolved 1083, reused 0, downloaded 146, added 131
2025-03-25T17:25:57.703Z	Progress: resolved 1083, reused 0, downloaded 169, added 154
2025-03-25T17:25:58.703Z	Progress: resolved 1083, reused 0, downloaded 347, added 339
2025-03-25T17:25:59.704Z	Progress: resolved 1083, reused 0, downloaded 458, added 454
2025-03-25T17:26:00.704Z	Progress: resolved 1083, reused 0, downloaded 557, added 557
2025-03-25T17:26:01.705Z	Progress: resolved 1083, reused 0, downloaded 589, added 583
2025-03-25T17:26:02.705Z	Progress: resolved 1083, reused 0, downloaded 666, added 658
2025-03-25T17:26:03.707Z	Progress: resolved 1083, reused 0, downloaded 795, added 787
2025-03-25T17:26:04.708Z	Progress: resolved 1083, reused 0, downloaded 857, added 843
2025-03-25T17:26:05.713Z	Progress: resolved 1083, reused 0, downloaded 875, added 860
2025-03-25T17:26:06.708Z	Progress: resolved 1083, reused 0, downloaded 979, added 966
2025-03-25T17:26:07.709Z	Progress: resolved 1083, reused 0, downloaded 1080, added 1080
2025-03-25T17:26:07.919Z	Progress: resolved 1083, reused 0, downloaded 1083, added 1083, done
2025-03-25T17:26:09.254Z	.../sharp@0.33.5/node_modules/sharp install$ node install/check
2025-03-25T17:26:09.255Z	.../esbuild@0.19.2/node_modules/esbuild postinstall$ node install.js
2025-03-25T17:26:09.256Z	.../node_modules/workerd postinstall$ node install.js
2025-03-25T17:26:09.256Z	.../esbuild@0.24.2/node_modules/esbuild postinstall$ node install.js
2025-03-25T17:26:09.256Z	.../node_modules/simple-git-hooks postinstall$ node ./postinstall.js
2025-03-25T17:26:09.397Z	.../esbuild@0.19.2/node_modules/esbuild postinstall: Done
2025-03-25T17:26:09.442Z	.../node_modules/simple-git-hooks postinstall: [INFO] Successfully set the pre-commit with command: pnpm lint-staged
2025-03-25T17:26:09.458Z	.../node_modules/simple-git-hooks postinstall: Done
2025-03-25T17:26:09.516Z	.../sharp@0.33.5/node_modules/sharp install: Done
2025-03-25T17:26:09.525Z	.../esbuild@0.24.2/node_modules/esbuild postinstall: Done
2025-03-25T17:26:09.531Z	.../node_modules/workerd postinstall: Done
2025-03-25T17:26:12.046Z	
2025-03-25T17:26:12.047Z	dependencies:
2025-03-25T17:26:12.047Z	+ @ai-sdk/openai-compatible 0.1.11
2025-03-25T17:26:12.047Z	+ @echristian/edge-tts 0.0.14
2025-03-25T17:26:12.047Z	+ @radix-ui/react-slider 1.2.3
2025-03-25T17:26:12.047Z	+ @radix-ui/react-slot 1.1.2
2025-03-25T17:26:12.047Z	+ @radix-ui/react-tabs 1.1.3
2025-03-25T17:26:12.047Z	+ @shadcn/ui 0.0.4
2025-03-25T17:26:12.047Z	+ ai 4.1.45
2025-03-25T17:26:12.048Z	+ cheerio 1.0.0
2025-03-25T17:26:12.048Z	+ class-variance-authority 0.7.1
2025-03-25T17:26:12.048Z	+ clsx 2.1.1
2025-03-25T17:26:12.048Z	+ fast-xml-parser 5.0.9
2025-03-25T17:26:12.048Z	+ lucide-react 0.475.0
2025-03-25T17:26:12.048Z	+ markdown-it 14.1.0
2025-03-25T17:26:12.048Z	+ next 15.1.7
2025-03-25T17:26:12.048Z	+ player.style 0.1.4
2025-03-25T17:26:12.048Z	+ podcast 2.0.1
2025-03-25T17:26:12.048Z	+ react 19.0.0
2025-03-25T17:26:12.049Z	+ react-dom 19.0.0
2025-03-25T17:26:12.049Z	+ react-markdown 10.0.0
2025-03-25T17:26:12.049Z	+ tailwind-merge 3.0.2
2025-03-25T17:26:12.049Z	+ tailwindcss-animate 1.0.7
2025-03-25T17:26:12.049Z	+ zod 3.24.2
2025-03-25T17:26:12.049Z	
2025-03-25T17:26:12.049Z	devDependencies:
2025-03-25T17:26:12.049Z	+ @antfu/eslint-config 4.3.0
2025-03-25T17:26:12.050Z	+ @ast-grep/napi-darwin-arm64 0.35.0
2025-03-25T17:26:12.050Z	+ @ast-grep/napi-linux-x64-gnu 0.35.0
2025-03-25T17:26:12.050Z	+ @cloudflare/workers-types 4.20250214.0
2025-03-25T17:26:12.050Z	+ @eslint-react/eslint-plugin 1.27.0
2025-03-25T17:26:12.050Z	+ @opennextjs/cloudflare 0.5.3
2025-03-25T17:26:12.050Z	+ @tailwindcss/typography 0.5.16
2025-03-25T17:26:12.050Z	+ @types/markdown-it 14.1.2
2025-03-25T17:26:12.051Z	+ @types/node 20.17.19
2025-03-25T17:26:12.051Z	+ @types/react 19.0.10
2025-03-25T17:26:12.051Z	+ @types/react-dom 19.0.4
2025-03-25T17:26:12.051Z	+ eslint 9.21.0
2025-03-25T17:26:12.056Z	+ eslint-config-next 15.1.7
2025-03-25T17:26:12.057Z	+ eslint-plugin-format 1.0.1
2025-03-25T17:26:12.057Z	+ eslint-plugin-react-hooks 5.1.0
2025-03-25T17:26:12.057Z	+ eslint-plugin-react-refresh 0.4.19
2025-03-25T17:26:12.057Z	+ lint-staged 15.4.3
2025-03-25T17:26:12.057Z	+ postcss 8.5.3
2025-03-25T17:26:12.057Z	+ simple-git-hooks 2.11.1
2025-03-25T17:26:12.058Z	+ tailwindcss 3.4.17
2025-03-25T17:26:12.058Z	+ typescript 5.7.3
2025-03-25T17:26:12.058Z	+ wrangler 4.4.0
2025-03-25T17:26:12.058Z	
2025-03-25T17:26:13.393Z	
2025-03-25T17:26:13.394Z	> hacker-news@0.1.0 postinstall /opt/buildhome/repo
2025-03-25T17:26:13.394Z	> simple-git-hooks
2025-03-25T17:26:13.394Z	
2025-03-25T17:26:13.443Z	[INFO] Successfully set the pre-commit with command: pnpm lint-staged
2025-03-25T17:26:13.447Z	[INFO] Successfully set all git hooks
2025-03-25T17:26:13.455Z	Done in 23.5s
2025-03-25T17:26:13.542Z	Executing user build command: pnpm run build
2025-03-25T17:26:14.073Z	
2025-03-25T17:26:14.074Z	> hacker-news@0.1.0 build /opt/buildhome/repo
2025-03-25T17:26:14.074Z	> next build
2025-03-25T17:26:14.074Z	
2025-03-25T17:26:14.772Z	⚠ No build cache found. Please configure build caching for faster rebuilds. Read more: https://nextjs.org/docs/messages/no-cache
2025-03-25T17:26:14.782Z	Attention: Next.js now collects completely anonymous telemetry regarding usage.
2025-03-25T17:26:14.782Z	This information is used to shape Next.js' roadmap and prioritize features.
2025-03-25T17:26:14.782Z	You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
2025-03-25T17:26:14.782Z	https://nextjs.org/telemetry
2025-03-25T17:26:14.782Z	
2025-03-25T17:26:14.849Z	   ▲ Next.js 15.1.7
2025-03-25T17:26:14.850Z	
2025-03-25T17:26:14.956Z	   Creating an optimized production build ...
2025-03-25T17:26:31.468Z	 ✓ Compiled successfully
2025-03-25T17:26:31.474Z	   Skipping validation of types
2025-03-25T17:26:31.474Z	   Skipping linting
2025-03-25T17:26:31.781Z	   Collecting page data ...
2025-03-25T17:26:33.366Z	   Generating static pages (0/7) ...
2025-03-25T17:26:35.023Z	   Generating static pages (1/7) 
2025-03-25T17:26:35.023Z	   Generating static pages (3/7) 
2025-03-25T17:26:35.024Z	   Generating static pages (5/7) 
2025-03-25T17:26:35.024Z	 ✓ Generating static pages (7/7)
2025-03-25T17:26:35.817Z	   Finalizing page optimization ...
2025-03-25T17:26:35.818Z	   Collecting build traces ...
2025-03-25T17:26:44.745Z	
2025-03-25T17:26:44.747Z	Route (app)                              Size     First Load JS
2025-03-25T17:26:44.748Z	┌ ƒ /                                    1.82 kB         156 kB
2025-03-25T17:26:44.748Z	├ ○ /_not-found                          980 B           106 kB
2025-03-25T17:26:44.748Z	├ ƒ /blog.xml                            142 B           105 kB
2025-03-25T17:26:44.748Z	├ ƒ /post/[date]                         1.82 kB         156 kB
2025-03-25T17:26:44.748Z	├ ƒ /rss.xml                             142 B           105 kB
2025-03-25T17:26:44.748Z	├ ƒ /sitemap.xml                         0 B                0 B
2025-03-25T17:26:44.748Z	└ ƒ /static/[...path]                    142 B           105 kB
2025-03-25T17:26:44.748Z	+ First Load JS shared by all            105 kB
2025-03-25T17:26:44.748Z	  ├ chunks/778022d2-bee65ae163c06383.js  52.9 kB
2025-03-25T17:26:44.748Z	  ├ chunks/85-5f71accb557a0f32.js        50.5 kB
2025-03-25T17:26:44.748Z	  └ other shared chunks (total)          1.94 kB
2025-03-25T17:26:44.748Z	
2025-03-25T17:26:44.749Z	
2025-03-25T17:26:44.749Z	○  (Static)   prerendered as static content
2025-03-25T17:26:44.749Z	ƒ  (Dynamic)  server-rendered on demand
2025-03-25T17:26:44.749Z	
2025-03-25T17:26:44.833Z	Success: Build command completed
2025-03-25T17:26:44.834Z	Executing user deploy command: npx wrangler deploy
2025-03-25T17:26:46.144Z	
2025-03-25T17:26:46.145Z	 ⛅️ wrangler 4.4.0
2025-03-25T17:26:46.145Z	------------------
2025-03-25T17:26:46.145Z	
2025-03-25T17:26:46.151Z	
2025-03-25T17:26:46.198Z	✘ [ERROR] The entry-point file at ".open-next/worker.js" was not found.
2025-03-25T17:26:46.199Z	
2025-03-25T17:26:46.199Z	
2025-03-25T17:26:46.200Z	
2025-03-25T17:26:46.200Z	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-03-25T17:26:46.217Z	🪵  Logs were written to "/opt/buildhome/.config/.wrangler/logs/wrangler-2025-03-25_17-26-45_701.log"
2025-03-25T17:26:46.254Z	Failed: error occurred while running deploy command

没有做过类似的应用,搞不太明白opennext和next的关系。

@highkay
Copy link
Author
highkay commented Mar 25, 2025

对了,我升级了一下wrangler的版本,到4.4.0了,有关系吗?

@highkay
Copy link
Author
highkay commented Mar 26, 2025

@ccbikai 还原了wrangler版本还是一样的问题,帮忙看看呗,我这边准备了一个比较大的pr,支持了爬取linux.do和v2ex.com,没法发布测试……

@ccbikai
Copy link
Owner
ccbikai commented Mar 30, 2025

@opennextjs/cloudflare 版本是多少? 有没有动过?

@highkay
Copy link
Author
highkay commented Mar 31, 2025

pnpm lock里面

  '@opennextjs/cloudflare':
    specifier: ^0.5.3
    version: 0.5.12(patch_hash=wge74w2chulfsfink5xf26ivui)(wrangler@3.114.2(@cloudflare/workers-types@4.20250321.0))

@ccbikai
Copy link
Owner
ccbikai commented Apr 20, 2025

我把 worker 和 web 分开了

部署的时候不需要构建命令

Worker 部署命令:pnpm deploy:worker
Web 部署命令:pnpm deploy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@highkay @ccbikai and others
0