Edge Functions bundling suddenly failing with no custom Edge Functions

Hi team

My Netlify site at dazzling-rosalind-900cef.netlify.app will not deploy successfully since this morning.

There are no issues with the build, but then the " 5. Edge Functions bundling" step fails. I have no custom Edge Functions set up, so I have no idea how to debug this, as it appears to be internal Netlify functions? If I’ve misunderstood I am happy to revisit, but I have not added anything myself it is a plain Next site that has been deploying fine until now.

See relevant snippet from deploy logs:

8:53:16 AM: ────────────────────────────────────────────────────────────────
8:53:16 AM:   5. Edge Functions bundling                                    
8:53:16 AM: ────────────────────────────────────────────────────────────────
8:53:16 AM: ​
8:53:16 AM: Packaging Edge Functions from .netlify/edge-functions directory:
8:53:16 AM:  - ipx
8:53:21 AM: error: TS2339 [ERROR]: Property 'formats' does not exist on type '{ deviceSizes: number[]; imageSizes: number[]; path: string; loader: string; domains: never[]; disableStaticImages: boolean; minimumCacheTTL: number; basePath: string; remotePatterns: never[]; }'.
8:53:21 AM:   const { formats = [defaultFormat] } = imageconfig;
8:53:21 AM:           ~~~~~~~
8:53:21 AM:     at file:///opt/build/repo/.netlify/edge-functions/ipx.ts:17:11
8:53:22 AM: ​
8:53:22 AM: ────────────────────────────────────────────────────────────────
8:53:22 AM:   Bundling of Function "undefined" failed                       
8:53:22 AM: ────────────────────────────────────────────────────────────────
8:53:22 AM: ​
8:53:22 AM:   Error message
8:53:22 AM:   Command failed with exit code 1: /opt/build/repo/.netlify/plugins/deno-cli/deno bundle --import-map=data:application/json;base64,eyJpbXBvcnRzIjp7Im5ldGxpZnk6ZWRnZSI6Imh0dHBzOi8vZWRnZS1ib290c3RyYXAubmV0bGlmeS5hcHAvdjEvaW5kZXgudHMifX0= --quiet /tmp/edge-62cd27d1898bb74ff6bf018f/1e9e592f-30d7-4a6a-9d21-10b4f23b6119-pre.js /tmp/edge-62cd27d1898bb74ff6bf018f/1e9e592f-30d7-4a6a-9d21-10b4f23b6119.js (https://ntl.fyi/exit-code-1)
8:53:22 AM:   error: TS2339 [ERROR]: Property 'formats' does not exist on type '{ deviceSizes: number[]; imageSizes: number[]; path: string; loader: string; domains: never[]; disableStaticImages: boolean; minimumCacheTTL: number; basePath: string; remotePatterns: never[]; }'.
8:53:22 AM:     const { formats = [defaultFormat] } = imageconfig;
8:53:22 AM:             ~~~~~~~
8:53:22 AM:       at file:///opt/build/repo/.netlify/edge-functions/ipx.ts:17:11
8:53:22 AM: ​
8:53:22 AM:   Error location
8:53:22 AM:   While bundling Function "undefined"
8:53:22 AM: ​
8:53:22 AM:   Resolved config
8:53:22 AM:   build:
8:53:22 AM:     command: npm run build
8:53:22 AM:     commandOrigin: ui
8:53:22 AM:     environment:
8:53:22 AM:       - NEXT_PRIVATE_TARGET
8:53:22 AM:     publish: /opt/build/repo/.next
8:53:22 AM:     publishOrigin: ui
8:53:22 AM:   functions:
8:53:22 AM:     ___netlify-handler:
8:53:22 AM:       external_node_modules: []
8:53:22 AM:       included_files:
8:53:22 AM:         - .env
8:53:22 AM:         - .env.local
8:53:22 AM:         - .env.production
8:53:22 AM:         - .env.production.local
8:53:22 AM:         - ./public/locales/**

How can I resolve and deploy my site?

So a couple of hours later my most recent failed deploy, decided it had worked and it would deploy itself.

I’ve deployed now since and not had the same issue.

Thanks for the follow-up and letting us know that you got it working. I did check the deploy log of your latest deploy and no longer see the error.

Did you make a change to correct the error?

Hope you have a great day.

No I didn’t make a change hey. I didn’t push again or anything, it changed the status on it’s own. Strange.

I’ve pushed since and not had the same issue.

Should it happen again, let us know!

Have a great weekend @jknlsn