Hey guys! first project using 3js, got my domain from porkbuns, and deploying it with vercel. Using inteliJ for my IDE
Issue:
Running locally my project looks exactly how its supposed to look –
Which is essentially gltf desk model , orbital controls and css3d renderer on desktop of my portfolio.
issue comes in deployment where it looks like this
more specifically - - (click bottom button)
error 404 on my model’s screen.
I am not sure where issue comes from i believe it may be from here
as iframe id = comprescreen is throwing a src issue that it cannot be found? ( a while ago when in deployment > console > network )
this is the console error on the deployed side.
feel free from that to go visit my website. I been stuck on this issue for the last 4 days. the following are the js imports.
import * as THREE from ‘three’;
import { GLTFLoader } from ‘three/examples/jsm/loaders/GLTFLoader.js’;
import { OrbitControls } from ‘three/examples/jsm/controls/OrbitControls.js’;
import { CSS3DRenderer, CSS3DObject } from ‘three/examples/jsm/renderers/CSS3DRenderer.js’;
should also note my previous iframe id=compscreen path was absolute at “/tabs/home.html” but i changed it to a more relative path “./tabs/home.html” thinking that was the issue but it wasnt. if interested please let me know i can provide the git and you could see my previous attempts at fixing this issue.
Thanks, fellow software engineer.