title: three js isn't activating
body: <p>This is my three js code</p>
  <pre><code>   import * as THREE from &quot;three&quot;;
      import images from &quot;./images.js&quot;;
      const container = document.querySelector(&quot;.three_bg&quot;);
      const loader = new THREE.TextureLoader();
      const scene = new THREE.Scene();
      const camera = new THREE.PerspectiveCamera(70,window.innerWidth/window.innerHeight,0.1, 1000);
      
      const renderer = new THREE.WebGL1Renderer({
          antialias: true,
      });
      renderer.setSize(window.innerWidth, window.innerHeight);
      container.appendChild(renderer.domElement);
      
      //responsive
      window.addEventListener(&quot;resize&quot;, ()=&gt; {
          camera.aspect = window.innerWidth/window.innerHeight;
          camera.updateProjectionMatrix();
          renderer.setSize(window.innerWidth, window.innerHeight);
      });
      
      
      const geometry = new THREE.TorusKnotGeometry( 10, 3, 100, 16 );
      const material = new THREE.MeshBasicMaterial({//color: 0xff0000,
           map:loader.load(images.bg1)});
      
      const mesh = new THREE.Mesh(geometry, material);
      
      scene.add(mesh);
      camera.position.z = 5;
      
      function animate() {
          requestAnimationFrame(animate);
          mesh.rotation.x += 0.01;
          mesh.rotation.y += 0.01;
          renderer.render(scene, camera);
      }
      
      animate();
  </code></pre>
  <p>While this is the html script</p>
  <pre><code>&lt;script type=&quot;module&quot; src=&quot;/src/assets/js/threeBg.js&quot;&gt;&lt;/script&gt;
  </code></pre>
  <p>the problem is the three js stuff isn't showing at all, not even a black screen/image of it, so I guess it's not about the camera distance etc. I followed all the steps correctly from my course, installed three js with &quot;npm i three&quot; even &quot;npm install three&quot; , added &quot;browserslist&quot;: [
  &quot;defaults&quot;
  ] to my package.json, not getting any error in console (red errors, while i have some yellow warnings but not concerning this )</p>