Ошибка в подключении Three js

Ошибка следующего типа, причём она появляется не во всех браузерах: Uncaught TypeError: Failed to resolve module specifier "three". Relative references must start with either "/", "./", or "../".

Подключение модулей

    <script type="importmap">
        {
            "imports": {
                "three": "https://unpkg.com/[email protected]/build/three.module.js",
                "OrbitControls": "https://unpkg.com/[email protected]/examples/jsm/controls/OrbitControls.js",
                "GLTFLoader": "https://unpkg.com/[email protected]/examples/jsm/loaders/GLTFLoader.js"
            }
        }
    </script>
    <script src="./assets/js/main.js" type="module"></script>

В начале файла main.js:

import * as THREE from 'three';
import {GLTFLoader} from "GLTFLoader";
import {OrbitControls} from "OrbitControls";


Ответы (0 шт):