It seems you have not yet configured the frustum of the shadow camera correctly. Try it like mentioned here:
Updated demo: Edit fiddle - JSFiddle - Code Playground