svelte-email icon indicating copy to clipboard operation
svelte-email copied to clipboard

Replace 'component' with 'template' in integrations

Open rotimi-best opened this issue 1 year ago • 3 comments

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.

rotimi-best avatar Aug 21 '23 12:08 rotimi-best

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

vercel[bot] avatar Aug 21 '23 12:08 vercel[bot]

This looks like a duplicate of This PR that is already open

Brandon-Ritchie avatar Aug 31 '23 15:08 Brandon-Ritchie

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.

rotimi-best avatar Aug 31 '23 21:08 rotimi-best