Errors when using and previewing code components

Hi Plasmic Team,
I’m receiving the following error when opening the preview with my custom components & the other error (Element type is invalid) when trying to preview custom components (everything renders fine in the regular UI & no errors in my code):