Can't deploy on nuxt hub with nuxt-mail

Hello, today I tried nuxt hub and I created a small project with nuxt-mail everything works but when I try to deploy on nuxt hub I get an error :

17:23:11.348 Error: Failed to publish your Function. Got error: Uncaught TypeError: Class extends value #<Object> is not a constructor or null
  at chunks/runtime.mjs:1:303274



here's my nuxt.config :

export default defineNuxtConfig({
  compatibilityDate: "2024-04-03",
  devtools: { enabled: true },
  nitro: {
    experimental: {
      openAPI: true,
    },
  },
  modules: [
    [
      "nuxt-mail",
      {
        message: {
          to: process.env.NUXT_MAIL_TARGET,
        },
        smtp: {
          host: process.env.NUXT_MAIL_SMPT,
          port: process.env.NUXT_MAIL_PORT,
          secure: true,
          auth: {
            user: process.env.NUXT_MAIL_USERNAME,
            pass: process.env.NUXT_MAIL_PASSWORD,
          },
        },
      },
    ],
  ],
});


if I remove the nuxtmail part it deploys fine :/
Was this page helpful?