adrianhajdin / project_3D_developer_portfolio

The most impressive websites in the world use 3D graphics and animations to bring their content to life. Learn how to build your own ThreeJS 3D Developer Portfolio today!
https://jsmastery.pro
5.81k stars 1.29k forks source link

NPM RUN BUILD NOT WORKING #94

Open abupraise opened 1 year ago

abupraise commented 1 year ago

So please I need help here. I went through the portfolio tutorial and everything is working perfectly. But I'm trying to run build and it's not working. I need help please

harshit4317 commented 1 year ago

Check the package.json file and make sure your script is defined like "build":"vite build" Or try to clear the cache by typing npm cache clean --force If this doesn't work share your screenshot of the terminal.

abupraise commented 1 year ago

Thank you so much Adrian. I really appreciate this. But a new problem just popped up.

:5173/desktop_pc/textures/Material_u1_v1_baseColor.jpeg:1 Failed to load resource: net::ERR_FAILED GLTFLoader.js:1754 THREE.GLTFLoader: Couldn't load texture textures/Material_u1_v1_baseColor.jpeg

abupraise commented 1 year ago

The 3d texture is not loading completely. It was all good before

harshit4317 commented 1 year ago

Thank you so much Adrian. I really appreciate this. But a new problem just popped up.

:5173/desktop_pc/textures/Material_u1_v1_baseColor.jpeg:1 Failed to load resource: net::ERR_FAILED GLTFLoader.js:1754 THREE.GLTFLoader: Couldn't load texture textures/Material_u1_v1_baseColor.jpeg

Try downloading the public folder again and change with the existing one , might be because something got deleted from the texture folder