Syntax Error during deploy --build command step bundling EdgeFunctions

Hey @mcolombosperoni, another workaround for now would be adding a resolution to your package.json.

	"resolutions": {
		"ajv": "^8.11.0"
	}

It seems that some netlify dependencies (netlify-cms-app and @netlify/build) use different versions of ajv and yarn seems to get confused and installs them wrong so that it uses the wrong version when we do validation for edge-functions.

I have to dig deeper into what is actually going wrong, but this workaround at least solves it for now.

2 Likes