New problem with Netlify Edge Functions
- netlify site name
bbt-portal.netlify.app
Full build log (netlify build and netlify dev):
Mint-Aspire-TC-895:~/Documents/code/bbt-portal$ netlify --version
netlify-cli/23.4.2 linux-x64 node-v22.19.0
Mint-Aspire-TC-895:~/Documents/code/bbt-portal$ netlify build
Netlify Build
────────────────────────────────────────────────────────────────
❯ Version
@netlify/build 35.1.3
❯ Flags
accountId: ---
dry: false
❯ Current directory
/home/Documents/code/bbt-portal
❯ Config file
/home/Documents/code/bbt-portal/netlify.toml
❯ Context
production
build.command from netlify.toml
────────────────────────────────────────────────────────────────
$ npm run build
> bbt-portal@1.0.1 build
> astro check && astro build
13:15:38 [@astrojs/netlify] Enabling sessions with Netlify Blobs
13:15:38 [content] Syncing content
13:15:38 [content] Synced content
13:15:38 [types] Generated 43ms
13:15:38 [check] Getting diagnostics for Astro files in /home/Documents/code/bbt-portal...
src/pages/repair.astro:247:27 - warning ts(6133): 'selectedKeystroke' is declared but its value is never read.
247 const selectedKeystroke = await requestInput(
~~~~~~~~~~~~~~~~~
Result (29 files):
- 0 errors
- 0 warnings
- 1 hint
13:15:43 [@astrojs/netlify] Enabling sessions with Netlify Blobs
13:15:43 [content] Syncing content
13:15:43 [content] Synced content
13:15:43 [types] Generated 30ms
13:15:43 [build] output: "server"
13:15:43 [build] mode: "server"
13:15:43 [build] directory: /home/Documents/code/bbt-portal/dist/
13:15:43 [build] adapter: @astrojs/netlify
13:15:43 [build] Collecting build info...
13:15:43 [build] ✓ Completed in 54ms.
13:15:43 [build] Building server entrypoints...
13:15:44 [vite] ✓ built in 792ms
13:15:44 [build] ✓ Completed in 886ms.
building client (vite)
13:15:44 [vite] ✓ 25 modules transformed.
13:15:44 [vite] dist/_astro/client.CIGcmlZO.js 0.66 kB │ gzip: 0.42 kB
13:15:44 [vite] dist/_astro/cpanel.astro_astro_type_script_index_0_lang.BRNIFlkx.js 1.41 kB │ gzip: 0.55 kB
13:15:44 [vite] dist/_astro/login.astro_astro_type_script_index_0_lang.DHO0s7Lo.js 1.80 kB │ gzip: 0.96 kB
13:15:44 [vite] dist/_astro/repair.astro_astro_type_script_index_0_lang.8eloYa0e.js 3.49 kB │ gzip: 1.40 kB
13:15:44 [vite] dist/_astro/_astro_actions.av4Es86p.js 8.31 kB │ gzip: 3.69 kB
13:15:44 [vite] ✓ built in 104ms
prerendering static routes
13:15:44 ✓ Completed in 6ms.
13:15:44 [build] Rearranging server assets...
13:15:44 [@astrojs/netlify] Emitted _redirects
13:15:44 [@astrojs/netlify] Bundling function ../../../build/entry.mjs
13:15:47 [build] Waiting for integration "@astrojs/netlify", hook "astro:build:done"...
13:15:48 [@astrojs/netlify] Generated SSR Function
13:15:48 [build] Server built in 4.61s
13:15:48 [build] Complete!
(build.command completed in 12.5s)
Functions bundling
────────────────────────────────────────────────────────────────
Packaging Functions generated by your framework:
- ssr/ssr.mjs
(Functions bundling completed in 1.2s)
Bundling of edge function failed
────────────────────────────────────────────────────────────────
Error message
There was a problem setting up the Edge Functions environment. To try a manual installation, visit https://ntl.fyi/install-deno.
Error location
While bundling edge function
Resolved config
build:
base: /home/Documents/code/bbt-portal
command: npm run build
commandOrigin: config
publish: /home/Documents/code/bbt-portal/dist
publishOrigin: config
headers:
- for: /_astro/*
values:
Cache-Control: public, max-age=31536000, immutable
headersOrigin: inline
redirects:
- from: /dashboard
status: 301
to: /cpanel
redirectsOrigin: config
Mint-Aspire-TC-895:~/Documents/code/bbt-portal$ netlify dev
⬥ Injecting environment variable values for all scopes
⬥ Ignored general context env var: LANG (defined in process)
⬥ Ignored general context env var: LANGUAGE (defined in process)
⬥ Injected .env file env vars: AUTH_SECRET, AUTH_TRUST_HOST, PUBLIC_USE_SSE, GSHEETS_TOKEN, WEBFLOW_TOKEN, AT_API_KEY, BARCODE_LOOKUP_API_KEY
⬥ Setting up local dev server
⬥ Starting Astro dev server
✔ Astro dev server ready on port 4321
A "_headers" file is present in the repository but is missing in the publish directory "dist".
> bbt-portal@1.0.1 dev
> astro dev
╭─────────────────────── ⬥ ────────────────────────╮
│ │
│ Local dev server ready: http://localhost:8888 │
│ │
╰───────────────────────────────────────────────────╯
⠋ Setting up the Edge Functions environment. This may take a couple of minutes.⬥ Loaded function ssr
⠦ Setting up the Edge Functions environment. This may take a couple of minutes.13:19:39 [@astrojs/netlify] Enabling sessions with Netlify Blobs
13:19:39 [types] Generated 1ms
⠧ Setting up the Edge Functions environment. This may take a couple of minutes.13:19:39 [content] Syncing content
⬥ Removed function ssr
13:19:39 [content] Synced content
13:19:39 [vite] Re-optimizing dependencies because vite config has changed
13:19:39 [vite] Port 4321 is in use, trying another one...
13:19:39 [vite] Port 4322 is in use, trying another one...
13:19:39 [vite] Port 4323 is in use, trying another one...
13:19:39 [vite] Port 4324 is in use, trying another one...
13:19:39 [vite] Port 4325 is in use, trying another one...
astro v5.13.5 ready in 3102 ms
┃ Local http://localhost:4326/
┃ Network use --host to expose
13:19:39 watching for file changes...
✖ Setting up the Edge Functions environment. This may take a couple of minutes.
› Error: Netlify CLI has terminated unexpectedly
This is a problem with the Netlify CLI, not with your application.
If you recently updated the CLI, consider reverting to an older version by running:
npm install -g netlify-cli@VERSION
You can use any version from https://ntl.fyi/cli-versions.
Please report this problem at https://ntl.fyi/cli-error including the error details below.
Error: There was a problem setting up the Edge Functions environment. To try a manual installation, visit https://ntl.fyi/install-deno.
at toError (file:///home/.nvm/versions/node/v22.19.0/lib/node_modules/netlify-cli/src/utils/command-helpers.ts:186:39)
at logAndThrowError (file:///home/.nvm/versions/node/v22.19.0/lib/node_modules/netlify-cli/src/utils/command-helpers.ts:193:15)
at prepareServer (file:///home/.nvm/versions/node/v22.19.0/lib/node_modules/netlify-cli/src/lib/edge-functions/proxy.ts:265:12)
System:
OS: Linux 6.8 Linux Mint 21.3 (Virginia)
CPU: (12) x64 Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
Binaries:
Node: 22.19.0 - ~/.nvm/versions/node/v22.19.0/bin/node
npm: 10.9.3 - ~/.nvm/versions/node/v22.19.0/bin/npm
npmGlobalPackages:
netlify-cli: 23.4.2