Comments (9)
cpojer
This is especially true for devs not using react and thus not using the emails.create / batch.create functions which depend on @react-email/render which depends on js-beautify.
I don't even use the dependency for which the sub-dependency is broken.
Would be awesome to have a flag to instantiate Resend without the create functions and thus without the @react-email/render dependency.
from resend-node.
Facing the same issue when trying to import resend in SvelteKit. Is there a previous version of resend that doesn't have this error?
install resend@2
there they use a different dependency
from resend-node.
If anyone wants a temporary fix you can go to your package.json file and add this bit for npm:
"overrides": {
"@react-email/render": "0.0.12"
}
or if you're using pnpm:
"pnpm": {
"overrides": {
"@react-email/render": "0.0.12"
}
}
from resend-node.
hey there, we just released v3.1.0 with the updated @react-email/render
version.
I'll close the issue now 😄
from resend-node.
Facing the same issue with the current version 3.0.0 (this one with Deno):
> import { Resend } from "npm:resend";
Uncaught SyntaxError: The requested module 'js-beautify' does not provide an export named 'html' at file:///Users/ramnivas/Library/Caches/deno/npm/registry.npmjs.org/@react-email/render/0.0.11/dist/index.mjs:49:10
at async <anonymous>:1:41
Works fine with 2.x:
import { Resend } from "npm:resend@2";
from resend-node.
Same issue here.
Would it be possible to dump js-beautify or make it optional (via optional dep and try-catch a dynamic import)? It's a huuuge dependency and not needed for most use cases of resend.
from resend-node.
Facing the same issue when trying to import resend in SvelteKit. Is there a previous version of resend that doesn't have this error?
from resend-node.
This is happening because of an import @react-email/render
had and that is fixed on the latest, the Resend SDK just needs to be updated to use the latest as well and this should go away.
Maybe overriding the installed version of @react-email/render
can be a workaround for now.
from resend-node.
having the same problem on "resend": "^3.0.0",
from resend-node.
Related Issues (20)
- "Headers is not defined" error message when setting up the API key HOT 1
- Package subpath './build/src/interfaces' is not defined by "exports" HOT 2
- audienceId variable mislabeled for contacts
- Can't Update a Contact's Email HOT 1
- Resend SDK design HOT 2
- Resend dependency broke Jest HOT 1
- Missing `cid` for attachments to be embedded on email HTML HOT 3
- Resend dependency broke Vercel deploy
- Fallback solution HOT 1
- [bug?]: contacts API not working HOT 2
- auto reply HOT 1
- Headers is not defined HOT 2
- NodeJS - Errors Not Throwing Thus Avoiding Catch Block of Try Catch HOT 2
- client should handle raw html load balancer error responses HOT 2
- Setting "Content-Type" header is not possible anymore
- Works in dev. env but not in production.... HOT 1
- Why Resend need React to work in Express?? HOT 3
- renderToStream is not a function on react@canary HOT 1
- Type annotations improvement
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from resend-node.