Exception in rendering! Message: window is not defined ReferenceError: window is not defined at new c (/tmp/execjs20161208-103658-1bkrw4js:136:3912) at m.mountComponent (/tmp/execjs20161208-103658-1bkrw4js:47:15602) at /tmp/execjs20161208-103658-1bkrw4js:49:31860 at a.r.perform (/tmp/execjs20161208-103658-1bkrw4js:47:12503) at Object.a [as renderToString] (/tmp/execjs20161208-103658-1bkrw4js:49:31821) at r (/tmp/execjs20161208-103658-1bkrw4js:50:21164) at Object.S.ReactOnRails.serverRenderReactComponent (/tmp/execjs20161208-103658-1bkrw4js:32:6073) at eval (eval at <anonymous> (/tmp/execjs20161208-103658-1bkrw4js:173:8), <anonymous>:10:23) at eval (eval at <anonymous> (/tmp/execjs20161208-103658-1bkrw4js:173:8), <anonymous>:17:3) at /tmp/execjs20161208-103658-1bkrw4js:173:8
Last winter, I tried to open the sunroof. It tried to open, but didn't make it. Eventually, it opened, but later, in my garage, I tried to close it, and it won't go all the way closed. It will close if I fiddle with the button and get it in exactly the right spot. It used to close itself automatically without fiddling. What might be the issue?
The sun roof mechanism is most likely getting, or has gotten, corroded or rusted. In this case, it would need to be replaced. The switch contacts are loosing contact and the switch should be replaced as well.
The recommended thing to do is have the entire sun roof assembly replaced. However, you can try lubricating the unit and cleaning out the tracks. If doesn't fix it, replacing the motor may be needed along with the switch. A certified mechanic can help you by diagnosing the state of your sunroof and fixing it accordingly.
Have a car question? Get free advice from our top-rated mechanics.
Our certified mechanics come to you ・Backed by 12-month, 12,000-mile guarantee・Save up to 30%