Error: Cannot access default.prototype on the server. You cannot dot into a client module from a server component. You can only pass the imported name through. #1722
Labels
App: Preview
Package: react-email
This is the CLI we generally use as just `email` on the temrinal.
Resolution: Needs More Information
More information is needed on this issue
Type: Bug
Confirmed bug
Describe the Bug
Hello, I am trying to use the content of zustand's store in the email component to dynamically render the template and obtain HTML through rendering, but an error occurred. Here is some of my code:
Email Template Code:
Here is the HTML code to obtain:
Which package is affected (leave empty if unsure)
No response
Link to the code that reproduces this issue
no
To Reproduce
直接访问当前页面出现错误
Expected Behavior
不出现错误,获取到html
What's your node version? (if relevant)
No response
The text was updated successfully, but these errors were encountered: