ssr0820
01/12/2024, 5:34 PMRun npm run preview to preview your production build locally.
> Using @sveltejs/adapter-cloudflare
✘ [ERROR] Could not resolve "http"
node_modules/.pnpm/nodemailer@6.9.8/node_modules/nodemailer/lib/fetch/index.js:3:21:
3 │ const http = require('http');
╵ ~~~~~~
The package "http" wasn't found on the file system but is built into node. Are you trying to
bundle for node? You can use "platform: 'node'" to do that, which will remove this error.
✘ [ERROR] Could not resolve "events"
node_modules/.pnpm/nodemailer@6.9.8/node_modules/nodemailer/lib/smtp-pool/index.js:3:29:
3 │ const EventEmitter = require('events');
╵ ~~~~~~~~