unlayer / react-email-editor

Drag-n-Drop Email Editor Component for React.js
https://unlayer.com/embed
MIT License
4.53k stars 730 forks source link

Uncaught Error: Invalid hook call. #347

Open bard-hobson opened 1 year ago

bard-hobson commented 1 year ago

The email editor is crashing on load. The error is Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component.

The error looks to be found in the below function react-email-editor.cjs.development.js - var EmailEditor = /#PURE/React__default.forwardRef(function (props, ref) {}

The page loads fine if I take out .

I am using the latest free version 1.7.8 and using React 17.