WP Interactions

Hi, new to PG and going through the long learning curve. Am stuck at adding a basic interaction to the header. Works fine in preview, but get an error when exporting the theme. Theme export works fine without the interaction. It is a super basic header with a logo and menu item, that’s it. When exporting, it says Project Export failed. Unknown error. With an OK button. No other info on what the problem is. Alt export (to get the log) doesn’t work either in this case, get an orange message saying the log is empty. Can anyone point me in the right direction? Wasted so much time already, so frustrating! Any help, greatly appreciated. Cheers