shellscape / jsx-email

Build emails with a delightful DX
https://jsx.email
MIT License
902 stars 28 forks source link

`build` throws in the starter #48

Closed corysimmons closed 8 months ago

corysimmons commented 8 months ago

npm create jsx-email && cd jsx-email-starter && pnpm install && pnpm run build throws:

> email build ./templates

Found 1 files:
   templates/jsx-email-starter.tsx

Starting build...
✘ [ERROR] Could not resolve "react/jsx-runtime"

    templates/jsx-email-starter.tsx:77:4:
      77 │     <Head />
         ╵     ^

  You can mark the path "react/jsx-runtime" as external to exclude it from the bundle, which will
  remove this error and leave the unresolved path in the bundle.
shellscape commented 8 months ago

thanks for the issue. in the future, please use the issue template. we're sticklers for that.

run npm add react -D and you should be set. I'll update the create package now.

shellscape commented 8 months ago

fixed in https://github.com/shellscape/jsx-email/commit/b9a1373dd5c03628d28220d1ea0dacc1f615e7a1

and create-jsx-email@0.1.1 is on the registry.