# I am getting an error when loading a .env generated inside the Babylon sandbox

**URL:** <https://forum.babylonjs.com/t/i-am-getting-an-error-when-loading-a-env-generated-inside-the-babylon-sandbox/25563>\
**Category:** Questions\
**Tags:** environment\
**Created:** [November 25, 2021, 1:45pm UTC](https://forum.babylonjs.com/t/i-am-getting-an-error-when-loading-a-env-generated-inside-the-babylon-sandbox/25563 "2021-11-25T13:45:49Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [November 25, 2021, 4:57pm UTC](https://forum.babylonjs.com/t/i-am-getting-an-error-when-loading-a-env-generated-inside-the-babylon-sandbox/25563/2 "2021-11-25T16:57:22Z")

</div>

This is a version mismatch problem, we’ve had some previous questions with the same issue:

[Error: Unsupported babylon environment map version “2” - Questions - Babylon.js (babylonjs.com)](https://forum.babylonjs.com/t/error-unsupported-babylon-environment-map-version-2/25155/3)

[.env conversion from .hdr throws an error - Questions - Babylon.js (babylonjs.com)](https://forum.babylonjs.com/t/env-conversion-from-hdr-throws-an-error/24762)

Sandbox now uses preview version 5.0, and your scene is probably using 4.2 🙂 Updating the scene to 5.0 is the recommended approach, since it’s backwards compatible and you get some improvements for free!

---

_[View the full topic](https://forum.babylonjs.com/t/i-am-getting-an-error-when-loading-a-env-generated-inside-the-babylon-sandbox/25563)._
