Fire crews were hampered by exploding tins of baked beans as they worked to extinguish a large truck fire on the Hume Highway near Gunning, halfway between Yass and Goulburn.

The NSW Rural Fire Service said they were notified of the single truck accident in the northbound lanes near Oolong Road shortly after 6:00am.

No-one was injured but the driver of the B-double lost one load of groceries and the prime mover itself in the blaze.

Authorities are waiting for the trucking company to remove the damaged truck from the highway.

The fire service said northbound traffic had been diverted into the southbound lanes on the new Hume Highway to bypass the accident.

Southbound motorists have been diverted onto the old Hume Highway between Veterans and Hillgrove Roads.