Build is a success, but functions fails and eventually, build fails

For Workers & Pages, what is the name of the domain?

studioup-film.pages.dev

What is the error message?

Error: Failed to publish your Function. Got error: Uncaught TypeError: Class extends value # is not a constructor or null at chunks/nitro/nitro.mjs:1:727062

What is the issue or error you’re encountering

Build fails

What are the steps to reproduce the issue?

I am using Nuxt, Nuxt Content and Nuxt UI to build an application. While I try to deploy this application on Cloudflare Pages, the build finishes as a success but eventually, it fails with the message: “Error: Failed to publish your Function. Got error: Uncaught TypeError: Class extends value # is not a constructor or null at chunks/nitro/nitro.mjs:1:727062”

Screenshot of the error

The culprit was “nuxt-mail” module. After disabling it, deployment is 100% succes.

This can now be closed.