mjmlio / mjml

MJML: the only framework that makes responsive-email easy
https://mjml.io
MIT License
16.92k stars 952 forks source link

Just the basics #2847

Closed brduffy closed 5 months ago

brduffy commented 5 months ago

I feel stupid asking this. But all I have done is try to add mjml to my hugo project and import it into my netlify function as described in the mjml docs ...

npm install mjml

import mjml2html from "mjml";

undefined ERROR Uncaught Exception {"errorType":"Runtime.ImportModuleError","errorMessage":"Error: Cannot find module '../lib/utils.js'\

manuelmeurer commented 5 months ago

@brduffy Can you reproduce this with a clean Hugo project? If you set up a sample Github repo it will be easier for the maintainers to reproduce this error.

brduffy commented 5 months ago

Oh okay. Yeah I suppose the template I'm using is a bit of a black box to me. It could be affecting the node module somehow. Although I have not had problems using other node modules. I'll setup a clean hugo github repo when I have a chance and get back to you. Thanks!

On Mon, Mar 25, 2024 at 8:34 AM Manuel Meurer @.***> wrote:

@brduffy https://github.com/brduffy Can you reproduce this with a clean Hugo project? If you set up a sample Github repo it will be easier for the maintainers to reproduce this error.

— Reply to this email directly, view it on GitHub https://github.com/mjmlio/mjml/issues/2847#issuecomment-2017903383, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADSF5L77S5P37IJMV5AIZDY2AKVZAVCNFSM6AAAAABFDJ3DJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMJXHEYDGMZYGM . You are receiving this because you were mentioned.Message ID: @.***>

-- Duff

iRyusa commented 5 months ago

I'm closing because that doesn't seem to be related to MJML here ?