# WebXR controller models not loading in Next.js

**URL:** <https://forum.babylonjs.com/t/webxr-controller-models-not-loading-in-next-js/27199>\
**Category:** Bugs\
**Tags:** webxr\
**Created:** [January 28, 2022, 8:06pm UTC](https://forum.babylonjs.com/t/webxr-controller-models-not-loading-in-next-js/27199 "2022-01-28T20:06:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenny\_Stanley](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kenny_stanley/32/21719_2.png) [@Kenny\_Stanley](https://forum.babylonjs.com/u/Kenny_Stanley)\
**Post date:** [January 28, 2022, 8:06pm UTC](https://forum.babylonjs.com/t/webxr-controller-models-not-loading-in-next-js/27199/1 "2022-01-28T20:06:29Z")

</div>

Hello!

So I’ve been trying to get babylon.js WebXR integrated nicely with Next.js (not using react-babylonjs) and followed the steps in the documentation for integrating with React.

I also am using next-transpile-modules.

I got it almost working perfectly, but the WebXR controller models don’t load and it defaults to the fallback controller meshes.

In the console I’m getting this error - `glTF / glb loader was not registered, using generic controller instead`

If you could help me out with this I’ll love you forever.

repo - [GitHub - KennyStanley/babylon-webxr-nextjs](https://github.com/KennyStanley/babylon-webxr-nextjs)  
website - [https://babylon-webxr-nextjs.netlify.app/](https://babylon-webxr-nextjs.netlify.app/)

---

<div class="post-metadata">

**Author:** ![Kenny\_Stanley](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kenny_stanley/32/21719_2.png) [@Kenny\_Stanley](https://forum.babylonjs.com/u/Kenny_Stanley)\
**Post date:** [January 28, 2022, 8:12pm UTC](https://forum.babylonjs.com/t/webxr-controller-models-not-loading-in-next-js/27199/2 "2022-01-28T20:12:18Z")

</div>

Whoops!  
Just figured it out. All I had to do was add - `import '@babylonjs/loaders/glTF'`  
I’m sorry, still super new to Babylon.js!
