Try to enable proj4js, in case it was loaded after ol.