which is a try without a catch/finally. It fails to build (on Vercel with default settings, Node 18.x I believe). Additionally, when adding an empty catch block, it once again fails to build with this error:
Error: [vite]: Rollup failed to resolve import "fetch-blob" from "/vercel/path0/src/compiler/cloud-workers/server-compiler.js"
I am not sure of the root cause of the second error. Beta v45 builds just fine (so I rolled back to that)
There seems to be an issue introduced in
d90dee80abe05d5da707be88fd74f42978a7d87d
. At https://github.com/primocms/primo/blob/ac2999815e11da776d81a32f8957668bc0a478f7/src/compiler/cloud-workers/server-compiler.js#L97 , we have this code:which is a
try
without acatch
/finally
. It fails to build (on Vercel with default settings, Node 18.x I believe). Additionally, when adding an empty catch block, it once again fails to build with this error:Error: [vite]: Rollup failed to resolve import "fetch-blob" from "/vercel/path0/src/compiler/cloud-workers/server-compiler.js"
I am not sure of the root cause of the second error. Beta v45 builds just fine (so I rolled back to that)