DracoLoader with typescript not support es6

Currently I import DracoLoader like below:

import { DRACOLoader } from ‘three/examples/js/loaders/DRACOLoader.js’;

and using it like
const dracoloader = new DRACOLoader();
dracoloader.setDecoderPath( ‘…/…/scripts/draco/draco’);
const loader = new GLTFLoader(manager).setPath(that.config.pathFolderModel);

import { DRACOLoader } from ‘three/examples/js/loaders/DRACOLoader.js’;

Try this:

import { DRACOLoader } from ‘three/examples/jsm/loaders/DRACOLoader.js’;
3 Likes

Yeb, It work with ver 108