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
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,
},
},
},
],
],
});
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 :/
1 Reply
-=Mr.Bolux=-
-=Mr.Bolux=-2mo ago
I found the problem on the project's github page, with no solution, what other dependency can I use ? https://github.com/dword-design/nuxt-mail/issues/236
GitHub
Deploying Nuxt Mail to Cloudflare pages · Issue #236 · dword-design...
Has anyone had any success using this module with Cloudflare pages? When I try to deploy via a Github repo I get the following error at the end of the deployment: Error: Failed to publish your Func...
Want results from more Discord servers?
Add your server