svelte-email
svelte-email copied to clipboard
Replace 'component' with 'template' in integrations
This PR is to address this issue https://github.com/carstenlebek/svelte-email/issues/5.
The code snippets in the integrations is wrong and causes this error error when run.
TypeError: Cannot read properties of undefined (reading 'render')
at Module.render (project_name/node_modules/svelte-email/render.js:10:14)
at GET (project_name/src/routes/api/invite/teacher/+server.js:22:43)
at Module.render_endpoint (project_name/node_modules/@sveltejs/kit/src/runtime/server/endpoint.js:49:24)
Instead of passing component
into render
, rather I have replaced it with template
.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
svelte-email | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Aug 21, 2023 0:10am |
This looks like a duplicate of This PR that is already open
This looks like a duplicate of This PR that is already open
Thanks for pointing that out. Curious why it hasn't been merged in.