svelte-email
svelte-email copied to clipboard
error during build
When building for production (in development it works very well) I got this error:
import { convert } from "html-to-text";02:24:05 ^^^^^^^02:24:05SyntaxError: Named export 'convert' not found. The requested module 'html-to-text' is a CommonJS module, which may not support all module.exports as named exports.02:24:05CommonJS modules can always be imported via the default export, for example using
import pkg from 'html-to-text';
const { convert } = pkg;
i
Is it working for anyone, I'm using vercel adapter and hosting.
Finnally mannaged to solve it. The issue comes from my projects using also the svelte-mail package which uses a diffrent version of the mutual Dependent package html-to-text after removing svelte-mail and re install the projects to update package.lock problem solved.