Closed maddsua closed 1 year ago
Hi @maddsua! I'll be looking into this. My hunch is that Deno (the runtime we use to execute edge functions) cached an old version of edge.netlify.com
locally. Could you try running deno cache --reload https://edge.netlify.com
, and see if that fixes the issue?
Forget that, it looks like deno cache --reload
doesn't mutate the global cache, but only the local one. Working on a fix! Thanks for opening the issue and bringing this to our attention!
Last working version for me is 15.2.0. What I have to change to use a later version?
Last working version for me is 15.2.0. What I have to change to use a later version?
Looks like @Skn0tt added changes to the future version, now we just wait, I don't see anything we can do as users/customers. If you have build minutes left, you might use cloud builds instead of building locally for the time being.
Sorry for the delay, yeah. I'm expecting a version with a fix to land today or tomorrow.
The fix was released as part of v16.0.1. It fixed it for me, so I hope it also does for you :) If it doesn't feel free to ping & reopen the issue.
Can confirm, it's working again after updating to v16.0.1. @Skn0tt thank you very much!
Last working version for me is 15.2.0. What I have to change to use a later version?
Still the same. I tested latest version v17.1.0 and v16.0.1.
Describe the bug
Current version of the CLI uses
@netlify/build 29.17.3
which fails to bundle any edge function in production mode.Error log:
Example edge function:
Edge functions seem work fine in
dev
mode, this only happens when trying to build for production.This is just a reproduction example to keep things simple, the issue can be seen in other projects too.
Steps to reproduce
netlify build
example.zip
Configuration
A totally blank configuration, just a single example edge function in a project.
Environment
System: OS: Windows 10 10.0.19043 Binaries: Node: 18.12.1 - ~\AppData\Roaming\nodejs\node.EXE npm: 9.7.2 - ~\AppData\Roaming\nodejs\npm.CMD