There was another thread about this a few days ago. When the Frunk is open, standing in front of the Spyder, there is a bar protruding from the left side of the lid that has to trigger a micro switch (just to the left of the latch) in order for the electric switch to work. It may be out of alignment or the switch bent or the switch is bad.
Open the Frunk, start the Spyder, reset the latch (in the center) as if the lid was closed, hold the micro switch down and have someone activate the switch on the Spyder control panel. If the latch opens, your switch is out of alignment or the bar is not making contact with the switch. If it does not open the latch, your switch is probably bad.