From 04a10320a93f7c8b1cb5d56c7b595715d088273b Mon Sep 17 00:00:00 2001 From: Emilis Dambauskas Date: Fri, 7 Jun 2024 19:22:38 +0300 Subject: [PATCH] Fixed three.js import paths. --- packages/gallery/src/components/helpers/3dManager.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/gallery/src/components/helpers/3dManager.ts b/packages/gallery/src/components/helpers/3dManager.ts index 9c7a5b0bc..95b61e749 100644 --- a/packages/gallery/src/components/helpers/3dManager.ts +++ b/packages/gallery/src/components/helpers/3dManager.ts @@ -1,8 +1,8 @@ import { useCallback, useState } from 'react'; import * as THREE from 'three'; -import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader'; -import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader'; -import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'; +import { GLTFLoader, GLTF } from 'three/examples/jsm/loaders/GLTFLoader.js'; +import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader.js'; +import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls.js'; import { RoomEnvironment } from 'three/examples/jsm/environments/RoomEnvironment.js'; import { LoadingManager } from 'three'; @@ -219,7 +219,7 @@ export function createSceneManager(container: HTMLElement, canvas: HTMLCanvasEle }, async loadHDR(url) { const { RGBELoader } = await import( - /* webpackChunkName: "three-rbdl-loader" */ 'three/examples/jsm/loaders/RGBELoader' + /* webpackChunkName: "three-rbdl-loader" */ 'three/examples/jsm/loaders/RGBELoader.js' ); const hdrLoader = new RGBELoader(); const hdr = await new Promise((resolve) => {