Skip to content
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

部署到netlify失败 #102

Open
1 task
nsnsqk opened this issue Oct 15, 2023 · 2 comments
Open
1 task

部署到netlify失败 #102

nsnsqk opened this issue Oct 15, 2023 · 2 comments
Labels

Comments

@nsnsqk
Copy link

nsnsqk commented Oct 15, 2023

How is Anse deployed?

Netlify

Describe the bug

6:54:00 PM: Netlify Build
6:54:00 PM: ────────────────────────────────────────────────────────────────
6:54:00 PM: ​
6:54:00 PM: ❯ Version
6:54:00 PM: @netlify/build 29.22.5
6:54:00 PM: ​
6:54:00 PM: ❯ Flags
6:54:00 PM: baseRelDir: true
6:54:00 PM: buildId: 652bc4ae412cb35c6b49ef2d
6:54:00 PM: deployId: 652bc4ae412cb35c6b49ef2f
6:54:00 PM: ​
6:54:00 PM: ❯ Current directory
6:54:00 PM: /opt/build/repo
6:54:00 PM: ​
6:54:00 PM: ❯ Config file
6:54:00 PM: /opt/build/repo/netlify.toml
6:54:00 PM: ​
6:54:00 PM: ❯ Context
6:54:00 PM: production
6:54:00 PM: ​
6:54:00 PM: build.command from netlify.toml
6:54:00 PM: ────────────────────────────────────────────────────────────────
6:54:00 PM: ​
6:54:00 PM: $ OUTPUT=netlify astro build
6:54:01 PM: 10:54:01 AM [content] No content directory found. Skipping type generation.
6:54:01 PM: 10:54:01 AM [build] output target: server
6:54:01 PM: 10:54:01 AM [build] deploy adapter: @astrojs/netlify/edge-functions
6:54:01 PM: 10:54:01 AM [build] Collecting build info...
6:54:01 PM: 10:54:01 AM [build] Completed in 332ms.
6:54:01 PM: 10:54:01 AM [build] Building server entrypoints...
6:54:04 PM: 10:54:04 AM [build] Completed in 2.59s.
6:54:04 PM:
6:54:04 PM: building client
6:54:12 PM:
6:54:12 PM: (!) Some chunks are larger than 500 kBs after minification. Consider:
6:54:12 PM: - Using dynamic import() to code-split the application
6:54:12 PM: - Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks
6:54:12 PM: - Adjust chunk size limit for this warning via build.chunkSizeWarningLimit.
6:54:14 PM: PWA v0.16.4
6:54:14 PM: mode generateSW
6:54:14 PM: precache 24 entries (1505.28 KiB)
6:54:14 PM: files generated
6:54:14 PM: dist/sw.js
6:54:14 PM: dist/workbox-4de3aa5f.js
6:54:14 PM: Completed in 10.69s.
6:54:14 PM:
6:54:14 PM:
6:54:14 PM: finalizing server assets
6:54:14 PM: 10:54:14 AM [build] Rearranging server assets...
6:54:16 PM: PWA v0.16.4
6:54:16 PM: mode generateSW
6:54:16 PM: precache 25 entries (1567.70 KiB)
6:54:16 PM: files generated
6:54:16 PM: dist/sw.js
6:54:16 PM: dist/workbox-4de3aa5f.js
6:54:17 PM: 10:54:17 AM [build] Server built in 15.96s
6:54:17 PM: 10:54:17 AM [build] Complete!
6:54:17 PM: ​
6:54:17 PM: (build.command completed in 16.9s)
6:54:17 PM: ​
6:54:17 PM: Edge Functions bundling
6:54:17 PM: ────────────────────────────────────────────────────────────────
6:54:17 PM: ​
6:54:17 PM: Packaging Edge Functions from .netlify/edge-functions directory:
6:54:17 PM: - _empty-middleware
6:54:17 PM: - entry
6:54:17 PM: - renderers
6:54:17 PM: error: Uncaught (in promise) Error: Error: Could not find file: file:///opt/build/repo/.netlify/edge-functions/chunks/astro.8ffde600.mjs
6:54:17 PM: const ret = new Error(getStringFromWasm0(arg0, arg1));
6:54:17 PM: ^
6:54:17 PM: at __wbg_new_15d3966e9981a196 (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/[email protected]/eszip_wasm.generated.js:417:19)
6:54:17 PM: at (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/[email protected]/eszip_wasm_bg.wasm:1:93412)
6:54:17 PM: at (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/[email protected]/eszip_wasm_bg.wasm:1:1499594)
6:54:17 PM: at (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/[email protected]/eszip_wasm_bg.wasm:1:1938165)
6:54:17 PM: at __wbg_adapter_40 (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/[email protected]/eszip_wasm.generated.js:231:6)
6:54:17 PM: at real (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/[email protected]/eszip_wasm.generated.js:215:14)
6:54:17 PM: at eventLoopTick (ext:core/01_core.js:183:11)
6:54:17 PM: ​
6:54:17 PM: Bundling of edge function failed
6:54:17 PM: ────────────────────────────────────────────────────────────────
6:54:17 PM: ​
6:54:17 PM: Error message
6:54:17 PM: Command failed with exit code 1: deno run --allow-all --no-config --import-map=/opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/import_map.json --quiet /opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/bundle.ts {"basePath":"/opt/build/repo","destPath":"/tmp/edge-652bc4ae412cb35c6b49ef2f/d917611b-38de-4fcc-9363-7e81d5b6ce9d.eszip","externals":[],"functions":[{"name":"_empty-middleware","path":"/opt/build/repo/.netlify/edge-functions/_empty-middleware.mjs"},{"name":"entry","path":"/opt/build/repo/.netlify/edge-functions/entry.js"},{"name":"renderers","path":"/opt/build/repo/.netlify/edge-functions/renderers.mjs"}],"importMapData":"{"imports":{"@netlify/edge-functions":"https://edge.netlify.com/v1/index.ts\",\"netlify:edge\":\"https://edge.netlify.com/v1/index.ts?v=legacy\"},\"scopes\":{}}"} (https://ntl.fyi/exit-code-1)
6:54:17 PM: error: Uncaught (in promise) Error: Error: Could not find file: file:///opt/build/repo/.netlify/edge-functions/chunks/astro.8ffde600.mjs
6:54:17 PM: const ret = new Error(getStringFromWasm0(arg0, arg1));
6:54:17 PM: ^
6:54:17 PM: at __wbg_new_15d3966e9981a196 (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/[email protected]/eszip_wasm.generated.js:417:19)
6:54:17 PM: at (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/[email protected]/eszip_wasm_bg.wasm:1:93412)
6:54:17 PM: at (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/[email protected]/eszip_wasm_bg.wasm:1:1499594)
6:54:17 PM: at (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/[email protected]/eszip_wasm_bg.wasm:1:1938165)
6:54:17 PM: at __wbg_adapter_40 (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/[email protected]/eszip_wasm.generated.js:231:6)
6:54:17 PM: at real (file:///opt/buildhome/node-deps/node_modules/@netlify/edge-bundler/deno/vendor/deno.land/x/[email protected]/eszip_wasm.generated.js:215:14)
6:54:17 PM: at eventLoopTick (ext:core/01_core.js:183:11)
6:54:17 PM: ​
6:54:17 PM: Error location
6:54:17 PM: While bundling edge function
6:54:17 PM: ​
6:54:17 PM: Resolved config
6:54:17 PM: build:
6:54:17 PM: command: OUTPUT=netlify astro build
6:54:17 PM: commandOrigin: config
6:54:17 PM: environment:
6:54:17 PM: - NETLIFY_USE_PNPM
6:54:17 PM: - NODE_VERSION
6:54:17 PM: publish: /opt/build/repo/dist
6:54:17 PM: publishOrigin: config
6:54:17 PM: headers:
6:54:17 PM: - for: /manifest.webmanifest
6:54:17 PM: values:
6:54:17 PM: Content-Type: application/manifest+json
6:54:17 PM: headersOrigin: config
6:54:17 PM: redirects:
6:54:17 PM: - from: /
6:54:17 PM: status: 200
6:54:17 PM: to: /.netlify/edge-functions/entry
6:54:17 PM: - from: /api/handle/:provider
6:54:17 PM: status: 200
6:54:17 PM: to: /.netlify/edge-functions/entry
6:54:19 PM: Build failed due to a user error: Build script returned non-zero exit code: 2
6:54:20 PM: Failed during stage "building site": Build script returned non-zero exit code: 2
6:54:20 PM: Failing build: Failed to build site
6:54:20 PM: Finished processing build request in 44.582s

Console Logs

No response

Participation

  • I am willing to submit a pull request for this issue.
@nsnsqk nsnsqk added the deploy label Oct 15, 2023
@GladioFeng
Copy link

I mmet the same problem.

@CNSeniorious000
Copy link
Contributor

I met the same problem.

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

No branches or pull requests

3 participants