Exception in rendering!

Message: window is not defined

ReferenceError: window is not defined
    at new c (/tmp/execjs20161208-83728-h68xl2js:136:3912)
    at m.mountComponent (/tmp/execjs20161208-83728-h68xl2js:47:15602)
    at /tmp/execjs20161208-83728-h68xl2js:49:31860
    at a.r.perform (/tmp/execjs20161208-83728-h68xl2js:47:12503)
    at Object.a [as renderToString] (/tmp/execjs20161208-83728-h68xl2js:49:31821)
    at r (/tmp/execjs20161208-83728-h68xl2js:50:21164)
    at Object.S.ReactOnRails.serverRenderReactComponent (/tmp/execjs20161208-83728-h68xl2js:32:6073)
    at eval (eval at <anonymous> (/tmp/execjs20161208-83728-h68xl2js:173:8), <anonymous>:10:23)
    at eval (eval at <anonymous> (/tmp/execjs20161208-83728-h68xl2js:173:8), <anonymous>:17:3)
    at /tmp/execjs20161208-83728-h68xl2js:173:8

Q: Car headlight intermittently on/off even after new bulb

asked by on

My car’s headlight is having trouble intermittently. Many times I have replaced the bulb and also the switch. In my research online, I have noticed that this is a recurring problem among owners of my make/model. In the state where I live, if you only have one headlight on, you will get a ticket. This problem is intermittent so I never know when it will blink off. It seems to fail at 0mph or 60mph. This can be so dangerous at night and especially when it is raining, plus the constant worry of getting a ticket. Can you tell me if there is a permanent fix for this headlight?

A: An intermittent headlight issue is a common...

An intermittent headlight issue is a common problem. The most likely cause are the headlight assembly itself, a wiring issue, or a faulty switch. Any of these have the potential to cause the headlight to intermittently fail. If the headlight assembly is cracked or shows signs of condensation, then the assembly is most likely the issue. A qualified technician, such as one from YourMechanic, will be able to diagnose the headlight fault and perform any repairs required.

Was this answer helpful?

Need advice from certified mechanic? Get help now!

Over 1000 mechanics are ready to answer your question.
The statements expressed above are only for informational purposes and should be independently verified. Please see our terms of service for more details

Ask a Mechanic
(100% Free)

Have a car question? Get free advice from our top-rated mechanics.

Ask A Mechanic
Over 10,000 questions answered!

Get an instant quote for your car

Our certified mechanics come to you ・Backed by 12-month, 12,000-mile guarantee・Save up to 30%

Get a quote

What others are asking

Q: Creaking noise on turns

Hello, this could be a number of issues but it sounds like a worn bushing or worn part causing this noise you are hearing. The control arm bushings on these vehicles are known to fall apart at about 50k miles...

Q: My car won't accelerate in drive. But will accelerate in park or reverse. The last couple of days. While driving the battery ligh

You may have a defective transmission valve body or the transaxle is bad internally. The manufacturer recommends replacing the valve body assembly first and then the complete transaxle if the problem is still happening. I suggest having you transmission tested...

Q: The car is not starting after I changed the aux cable in the stereo.

To begin with, the lighting and door lock modules are very sensitive to low battery voltage. Once the battery voltage drops, they can start to do crazy things, making the car appear haunted. Door locks and windows may start to...

Related articles

How Long Does a Heater Control Valve Last?
Keeping the right amount of coolant in a car is essential in keeping the engine at the right temperature. Failing to have the right amount of coolant or even bad elements...
P0052 OBD-II Trouble Code: HO2S Heater Control Circuit High (Bank 2 Sensor 1)
P0052 code definition HO2S Heater Control Circuit High (Bank 2 Sensor 1) What the P0052 code means This code is seen when the Engine Control Module (ECM) tries to control the...
P0240 OBD-II Trouble Code: Turbocharger Boost Sensor B Circuit Range/Performance
P0240 code definition Turbocharger Boost Sensor B Circuit Range/Performance What the P0240 code means P0240 is an OBD-II generic code triggered when the Engine Control Module (ECM) detects the intake boost...