When using the quickstart-react scaffold provided, I could use the live preview with the ngrok URL that was generated, but upon making a few changes, the Live Preview broke.
The app was still working perfectly fine independently when opened in a new tab via localhost or the ngrok link. Trying to use the Monday preview, however, would give me this error:
`Uncaught TypeError: can't access property "forEach", hook.renderers is undefined`
I created a fresh React app using create-react-app v4.0.3 and set it up to expose with ngrok, but that would also fail (only within the Monday preview) with the same error.
When running build
and uploading the zipped build folder, the preview works fine. I’m not sure if this is an issue with the way the Live Preview is attempting to render the app within its iframe or if it’s an issue with my app (or both). Is there a specific version of node/react/react-scripts that is required to use to get the preview working?