Exception in rendering!

Message: window is not defined

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

Q: Engine stopped running while driving and will not start again.

asked by on

The engine of my Nissan stopped running on the way to work a couple of days ago. The starter will run and the engine will turn over. But it will not start. All electronics still work in the car and the starter sounds fine. After scanning the computer a P0340 code popped up telling me it was a camshaft position sensor 1. Being a teenager still in high school, need the car fixed soon and I must do it myself. Should I replace the sensor myself or is there something else that is causing the issue
My car has an automatic transmission.

A: Hey there. As you know, this P0340 code ind...

Hey there. As you know, this P0340 code indicates the camshaft position sensor is either faulty or not connected properly. The camshaft position sensor monitors the speed of the camshaft providing the ECU with this information. The ECU uses this information to control the timing of the ignition and fuel. When this sensor is not working properly, this will cause the ignition timing to be wrong, which will ultimately cause the ignition coils not to produce spark. This is what may be causing your no start issue. To verify the repairs that are needed and to avoid replacing unnecessary parts, your best bet is to have a professional diagnose the code in person and follow through with appropriate repairs.

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

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: Car making scraping sound

The scrapping sound is most likely a part of the fender or plastic trim is hitting the tire on turns. I recommend you have a mechanic, like ones from YourMechanic, come by and check your car for you. The mechanic...

Q: Oil in the water

If you open the oil cap and see a white moisture on the top of it, you may have a head gasket cracked. A block test should be performed to verify a head gasket crack. If you would like to...

Q: Check Engine code 0024

There are quite a few things that can cause this. Your car has variable valve timing; a complex system in which to change the cam timing. It uses oil pressure to advance or retard the timing. The oil pressure is...

Related articles

How Do Power Car Windows Increase Passenger Safety?
Power windows are responsible for approximately 2,000 emergency room visits every year. When a power window closes, it exerts enough force to bruise or break bones, crush fingers, or restrict an airway. Though...
How Long Does a Distributor O Ring Last?
The distributor is part of the ignition system in your vehicle and its purpose is to route high voltage from the ignition coil to the spark plug. The spark plug then...
How Much Does a Mechanic Make in Vermont?
Automotive technician jobs in Vermont have an average mechanic salary of $37k, with some mechanics earning a salary of $53k.