image: bug: mkdir /var/task/.vercel_build_output

After a lot of effort, I managed to create a “working” build @nuxt/image in conjunction with @nuxt/vercel-builder in relation to issue: https://github.com/nuxt/image/issues/344.

Only now there is a completely different problem. Upon entering any subpage, Vercel Logs report:

[GET] /
18:06:12:91
FATAL  ENOENT: no such file or directory, mkdir '/var/task/.vercel_build_output'2021-09-13T16:06:14.275Z	undefined	ERROR	λ Error while initializing nuxt: [Error: ENOENT: no such file or directory, mkdir '/var/task/.vercel_build_output'] {  errno: -2,  code: 'ENOENT',  syscall: 'mkdir',  path: '/var/task/.vercel_build_output'}RequestId: 2b315c53-269f-49dd-bc50-fb26bec43f43 Error: Runtime exited with error: exit status 1Runtime.ExitError

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 4
  • Comments: 15 (2 by maintainers)

Most upvoted comments

I got it to work just now, thanks a million @jonathanmelville! I had to apply this patch too: https://github.com/nuxt/image/issues/434

All good now, thanks a lot.