Open theDanielJLewis opened 6 months ago
This might be a moot point because, as I was reminded on Discord, most email clients still don't support SVG images, so it's actually not a good idea to use React Icons.
Thus, I've updated my code so that it doesn't include any SVG icons anymore, and the email templates build and render properly now.
OK that's good to know. I'd still like to triage this so we have guidance. And, if someone should want to target only an email client that supports SVG, we'd be in good shape for that.
@jsxp-email/cli
Version?: 1.7.2import { BiCalendar } from "react-icons/bi";
(or probably any icon from any set).<BiCalendar />
(or whatever icon is being imported).Expected Behavior
Expected to build and preview, including the SVG icon, without errors.
Actual Behavior
On build, this will return the following fatal error:
That last line repeats with different line numbers.
This error also shows in the browser console (but not the CLI console) when attempting to load the email preview app.
Additional Information
As discussed in Discord on January 9, 2024.