Three JS and Parcel – Having problems loading HDR file

At the moment I am working on my first Three.js project, everything was working fine until the moment I tried to load an HDR File. I suppose it is something related to importing static files using parcel. But a am really not sure. And if it is the case I have no idea how to fix it.

Here is the error I am having:

@parcel/core: No transformers found for _src/assets/sunset_in_the_chalk_quarry_4k.hdr_.

Reflective-3D/node_modules/@parcel/config-default/index.json:3:3

2 |  "bundler": "@parcel/bundler-default",
3 |   "transformers": { 
4 |     "types:*.{ts,tsx}": ["@parcel/transformer-typescript-types"],
5 |     "bundle-text:*": ["...", "@parcel/transformer-inline-string"],
6 |     "data-url:*": ["...", "@parcel/transformer-inline-string"],  
7 |     "worklet:*.{js,mjs,jsm,jsx,es6,cjs,ts,tsx}": [
8 |       "@parcel/transformer-worklet",  
9 |       "..." 
10 |     ],
11 |     "*.{js,mjs,jsm,jsx,es6,cjs,ts,tsx}": [ 
12 |       "@parcel/transformer-babel",
13 |       "@parcel/transformer-js",

And my JS code


    import * as THREE from "three";
    import {OrbitControls} from "../node_modules/three/examples/jsm/controls/OrbitControls.js";
    import {FlakesTexture} from "../node_modules/three/examples/jsm/textures/FlakesTexture.js";
    import {RGBELoader} from "../node_modules/three/examples/jsm/loaders/RGBELoader.js";
    
// HERE I IMPORT MY FILE
import HdrImage from "./assets/sunset_in_the_chalk_quarry_4k.hdr";

    let scene, camera, renderer, controls, pointlight;

    function init() {
      scene = new THREE.Scene();

      renderer = new THREE.WebGLRenderer({alpha: true, antialias: true});
      renderer.setSize(window.innerWidth, window.innerHeight);
      document.body.appendChild(renderer.domElement);

      renderer.outputEncoding = THREE.sRGBEncoding;
      renderer.toneMapping = THREE.ACESFilmicToneMapping;
      renderer.toneMappingExposure = 1.25;

      camera = new THREE.PerspectiveCamera(
        50,
        window.innerWidth / window.innerHeight,
        1,
        1000
      );
      camera.position.set(0, 0, 500);
      controls = new OrbitControls(camera, renderer.domElement);

      controls.autoRotate = true;
      controls.autoRotateSpeed = 0.5;
      controls.enableDamping = true;

      pointlight = new THREE.PointLight(0xffffff, 1);
      pointlight.position.set(200, 200, 200);
      scene.add(pointlight);

      let envmaploader = new THREE.PMREMGenerator(renderer);

      new RGBELoader().load(HdrImage, function (hdrmap) {
        let envmap = envmaploader.fromCubemap(hdrmap);
        let texture = new THREE.CanvasTexture(new FlakesTexture());
        texture.wrapS = THREE.RepeatWrapping;
        texture.wrapT = THREE.RepeatWrapping;
        texture.repeat.x = 10;
        texture.repeat.y = 6;

        const ballMaterial = {
          clearcoat: 1.0,
          cleacoatRoughness: 0.1,
          metalness: 0.9,
          roughness: 0.5,
          color: 0x8418ca,
          normalMap: texture,
          normalScale: new THREE.Vector2(0.15, 0.15),
          envMap: envmap.texture,
        };

        let ballGeo = new THREE.SphereGeometry(100, 64, 64);
        let ballMat = new THREE.MeshPhysicalMaterial(ballMaterial);
        let ballMesh = new THREE.Mesh(ballGeo, ballMat);
        scene.add(ballMesh);

        animate();
      });
    }
    function animate() {
      controls.update();
      renderer.render(scene, camera);
      requestAnimationFrame(animate);
    }
    init();

And my folder structure

[folder structure][1]
[1]: https://i.stack.imgur.com/H3JnT.png

Has someone faced this trouble before?

Thanks a lot for your ideas on it (: