# 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:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brainwilder](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@brainwilder](https://forum.babylonjs.com/u/brainwilder)\
**Post date:** [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/1 "2021-11-25T13:45:49Z")

</div>

Hi, I am currently using a .env file for my scene which I generated a month ago (using the babylon sandbox export), but, now I want to change the environment to another one to get a better lighting quality.  
When I export a new .env file using the babylon sandbox (following the same previous process) I am getting an error that prevents it from loading.  
I used .HDR images in both processes and I don’t understand why am I getting that error.  
Any help would be really appreciated, thanks!

This is the error message:

Uncaught Error: Unsupported babylon environment map version “2”  
at Function.e.UploadEnvLevelsAsync (babylon.js:16)  
at e.loadCubeData (babylon.js:16)  
at A (babylon.js:16)  
at babylon.js:16  
at babylon.js:16  
at XMLHttpRequest.g (babylon.js:16)

---

<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!

---

<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:** [December 22, 2021, 4:49pm UTC](https://forum.babylonjs.com/t/i-am-getting-an-error-when-loading-a-env-generated-inside-the-babylon-sandbox/25563/3 "2021-12-22T16:49:28Z")

</div>

Hi @brainwilder just checking in, were you able to update your scene? 🙂
