<script type="module" src="./js/parallax.js"></script>
<script>
var scene = document.getElementById('scene');
var parallaxInstance = new Parallax(scene);
</script>
type="module"
.type="module"
скрипт parallax.js не работает. type="module"
удаляю, то все работает. type="module"
? <script type="module">
import Parallax from "./js/parallax.js"
// или так import { Parallax } from "./js/parallax.js"
let scene = document.getElementById('scene');
let parallaxInstance = new Parallax(scene);
</script>
window.Parallax = Parallax;
) но лучше так не делать.