svelte-email icon indicating copy to clipboard operation
svelte-email copied to clipboard

error during build

Open Avi-ADAM opened this issue 2 years ago • 1 comments

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

Avi-ADAM avatar May 25 '23 00:05 Avi-ADAM

Is it working for anyone, I'm using vercel adapter and hosting.

Avi-ADAM avatar Jun 14 '23 09:06 Avi-ADAM

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.

Avi-ADAM avatar Aug 21 '24 09:08 Avi-ADAM