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

v17.38.1 and above shows an error with setting up edge environment #7044

Open
coaxial opened this issue Feb 19, 2025 · 0 comments
Open

v17.38.1 and above shows an error with setting up edge environment #7044

coaxial opened this issue Feb 19, 2025 · 0 comments
Labels
type: bug code to address defects in shipped code

Comments

@coaxial
Copy link

coaxial commented Feb 19, 2025

Describe the bug

netlify dev runs fine unti v17.38.0 of netlify-cli. If I use v17.38.1 or above, then I'm getting this error:

› Error: There was a problem setting up the Edge Functions environment. To try a manual installation, visit https://ntl.fyi/install-deno.

Full start:

> netlify dev

◈ 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)
◈ Ignored general context env var: LC_ALL (defined in process)
◈ Setting up local development server
◈ Starting Netlify Dev with Astro
15:19:11 [types] Generated 1ms
15:19:11 [content] Syncing content
15:19:11 [content] Synced content
15:19:11 [vite] Re-optimizing dependencies because lockfile has changed

 astro  v5.3.0 ready in 569 ms

┃ Local    http://localhost:4321/
┃ Network  use --host to expose

15:19:11 watching for file changes...
✔ Waiting for framework port 4321. This can be configured using the 'targetPort' property in the netlify.toml

   ┌─────────────────────────────────────────────────┐
   │                                                 │
   │   ◈ Server now ready on http://localhost:8888   │
   │                                                 │
   └─────────────────────────────────────────────────┘

⠙ Setting up the Edge Functions environment. This may take a couple of minutes.◈ Loaded function getTranslations
◈ Loaded function calculateAllowance
⠹ Setting up the Edge Functions environment. This may take a couple of minutes.◈ Loaded function calculateDate
◈ Loaded function calculateInterim
✖ Setting up the Edge Functions environment. This may take a couple of minutes.
 ›   Error: There was a problem setting up the Edge Functions environment. To try a manual installation, visit https://ntl.fyi/install-deno.

Deno seems to be present:

$ deno --version                                                                                                                     
deno 2.2.0 (stable, release, x86_64-unknown-linux-gnu)                                                                                                                    
v8 13.4.114.9-rusty                                                                                                                                                       
typescript 5.7.3       

I'm using node v20.18.3

Steps to reproduce

  1. Use netlify-cli 18.38.1 or above
  2. Run netlify dev
  3. Get the error message

Configuration

[dev]
  autoLaunch = false
[build]
  command = "astro build"
  functions = "netlify/functions"
  publish = "dist"
[functions]
  node_bundler = "esbuild"
[[redirects]]
  # Serve Plausible as a first-party script
  from = "/js/ascript.js"
  to = "https://plausible.io/js/script.js"
  status = 200
[[redirects]]
  # Also proxy Plausible events
  from = "/api/event"
  to = "https://plausible.io/api/event"
  status = 200
[[redirects]]
  from = "/api/*"
  to = "/.netlify/functions/:splat"
  status = 200
[[plugins]]
  package = "netlify-plugin-minify-html"
[[plugins]]
package = "netlify-plugin-image-optim"

Environment

sh: 1: envinfo: not found
@coaxial coaxial added the type: bug code to address defects in shipped code label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

1 participant