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 · 5 comments
Open

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

coaxial opened this issue Feb 19, 2025 · 5 comments
Labels
status: need-info 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
@stevenmilstein
Copy link

I've been having the same issue. Thanks, @coaxial, for the workaround.!

@serhalp
Copy link
Collaborator

serhalp commented Feb 24, 2025

Hi folks. Thanks for reporting this.

Does this happen consistently? If you run netlify dev multiple times in a row, does it fail like this every time?

If I use v17.38.1 or above, then I'm getting this error

To clarify, are you seeing this issue with the latest netlify-cli version (19.0.0)? There have been quite a few releases since 17.38.1. Can you please run npm i -g netlify-cli@latest and try again?

Thanks!

@stevenmilstein
Copy link

Same problem. I have had a support ticket open since Jan 31.

With v 17.38.0, the console logs:
-Loaded function ... for serverless functions

  • Loaded edge function ... for edge functions.

Above that version:

  • Setting up the Edge Functions environment. This may take a couple of minutes.◈ Loaded function ... for all serverless functions
  • Doesn't load the Edge Functions
  • `
    ✖ 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 is installed.

@coaxial
Copy link
Author

coaxial commented Mar 3, 2025

@serhalp This was happening with any version available above v17.38.0 when I opened the issue.

@JakeChampion
Copy link

In case it is helpful to anyone looking into this, here is the diff between 17.38.0 and 17.38.1 v17.38.0...v17.38.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: need-info type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

4 participants