0

this is my code :

import * as THREE from 'three.js/build/three.module.js';
import { GLTFLoader } from 'three.js/examples/jsm/loaders/GLTFLoader.js';

but when I run console error :

Uncaught SyntaxError: Cannot use import statement outside a module (at app.js:1:1)

ezady
  • 13
  • 3
  • 3
    *Always* google error messages first. *Especially* before posting a question here of all places. – ChrisG Apr 29 '22 at 08:16

0 Answers0