# Change threejs version on local project to match online editor

**URL:** <https://forum.8thwall.com/t/change-threejs-version-on-local-project-to-match-online-editor/8066>\
**Category:** Technical Support\
**Tags:** threejs\
**Created:** [August 14, 2025, 1:37pm UTC](https://forum.8thwall.com/t/change-threejs-version-on-local-project-to-match-online-editor/8066 "2025-08-14T13:37:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Callum\_Fowler](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@Callum\_Fowler](https://forum.8thwall.com/u/Callum_Fowler)\
**Post date:** [August 14, 2025, 1:37pm UTC](https://forum.8thwall.com/t/change-threejs-version-on-local-project-to-match-online-editor/8066/1 "2025-08-14T13:37:58Z")

</div>

I have found some discrepancies between a project I have running locally and one on the online [script] editor. I think it may be to do with the version of three.js I am importing locally via a cdn. I was wondering, how would I:

- Verify the version being used on the online editor
- Update the cdn path to import the same version to my local project

Thanks in advance.

Callum

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [August 14, 2025, 5:41pm UTC](https://forum.8thwall.com/t/change-threejs-version-on-local-project-to-match-online-editor/8066/2 "2025-08-14T17:41:28Z")

</div>

Are you asking about the three.js version in Editor or Studio? In Editor it depends on the project since you have full control over the imports. You can find the three.js version by looking at the head.html for example:

> **[three.js: Image Targets Flyer | 8th Wall | 8th Wall](https://www.8thwall.com/8thwall/flyer-threejs/code/head.html#L5)**
>
> Displays information on a flyer tracked to image targets. Introduces image target tracking and video playback.

---

<div class="post-metadata">

**Author:** ![Callum\_Fowler](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@Callum\_Fowler](https://forum.8thwall.com/u/Callum_Fowler)\
**Post date:** [August 15, 2025, 10:03am UTC](https://forum.8thwall.com/t/change-threejs-version-on-local-project-to-match-online-editor/8066/3 "2025-08-15T10:03:05Z")

</div>

In the editor, not the studio. So I’m assuming the line below is the threejs import at version `123`, is that correct?

`<meta name="8thwall:renderer" content="threejs:123">`

In my local project I have this import line which also looks like it’s importing `v123`, is this assumption also correct?

`<script src="//cdnjs.cloudflare.com/ajax/libs/three.js/r123/three.min.js"></script>`

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [August 15, 2025, 5:37pm UTC](https://forum.8thwall.com/t/change-threejs-version-on-local-project-to-match-online-editor/8066/4 "2025-08-15T17:37:18Z")

</div>

Yes, that’s correct.

---

<div class="post-metadata">

**Author:** ![Callum\_Fowler](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@Callum\_Fowler](https://forum.8thwall.com/u/Callum_Fowler)\
**Post date:** [August 18, 2025, 10:37am UTC](https://forum.8thwall.com/t/change-threejs-version-on-local-project-to-match-online-editor/8066/5 "2025-08-18T10:37:22Z")

</div>

Okay, do you know why potentially I’m seeing different results in the editor vs my local version? Both are using the same logic to play an GLB’s animation, however if I change all the materials to be a `MeshBasicMaterial` in the local version the animation breaks. If I change all the materials to be `MeshBasicMaterial` in the editor it works correctly. Below are code snippets from the two versions.

**Local Version**

```auto
const animationMixer = new THREE.AnimationMixer()
const clip = animationMixer.clipAction(animations[0], scene)

animationMixers.push(animationMixer)

clip.setLoop(THREE.LoopOnce)
clip.reset()
clip.clampWhenFinished = true

clip.play()

```

**Editor Version**

```auto
mixer = new THREE.AnimationMixer(e.scene)
const animClip = mixer.clipAction(e.animations[0], e.scene)
animClip.setLoop(THREE.LoopOnce)
animClip.reset()
animClip.play()

```

---

<div class="post-metadata">

**Author:** ![GeorgeButler](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.8thwall.com/georgebutler/32/1903_2.png) [@GeorgeButler](https://forum.8thwall.com/u/GeorgeButler)\
**Post date:** [August 18, 2025, 4:37pm UTC](https://forum.8thwall.com/t/change-threejs-version-on-local-project-to-match-online-editor/8066/6 "2025-08-18T16:37:13Z")

</div>

Can you share a copy of the model file?
