# Error: Cannot load cubemap because 6 files were not defined

**URL:** <https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852>\
**Category:** Questions\
**Tags:** react, material\
**Created:** [October 27, 2021, 8:35pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852 "2021-10-27T20:35:50Z")\
**Posts on this page:** 1\
**Showing post:** 58

<div class="post-metadata">

**Author:** ![ryantrem](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ryantrem/32/34010_2.png) [@ryantrem](https://forum.babylonjs.com/u/ryantrem)\
**Post date:** [November 15, 2021, 9:30pm UTC](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852/58 "2021-11-15T21:30:06Z")

</div>

When using Babylon React Native, you have two options for loading local resources:

1. Embed resources in the app the same way you would if you weren’t using React Native, and load them with app:///. Embedding files is different on each platform.
2. Base 64 encode the file into a json blob and reference it from some js/ts file in your project. This is not efficient, but easy to do. More details here: [How to import a local .glb file in BabylonReactNative? - #9 by ryantrem](https://forum.babylonjs.com/t/how-to-import-a-local-glb-file-in-babylonreactnative/18212/9)

We hope to make loading files easier in Babylon React Native, but React Native itself creates some hurdles for this that we haven’t resolved yet.

---

_[View the full topic](https://forum.babylonjs.com/t/error-cannot-load-cubemap-because-6-files-were-not-defined/24852)._
