using mjml in route handler gets error using Next 13.5.4
Unanswered
Western Meadowlark posted this in #help-forum
Western MeadowlarkOP
I use mjml's toHtml for creating an email template inside an API route. When I invoke it I got errors that look like
âš ./node_modules/mjml-core/lib/helpers/mjmlconfig.js
Critical dependency: the request of a dependency is an expression
Import trace for requested module:
./node_modules/mjml-core/lib/helpers/mjmlconfig.js
./node_modules/mjml-core/lib/index.js
./node_modules/mjml/lib/index.js
./src/app/templates/emails/client-mail.ts
./src/app/api/send/client/route.ts