adrianhajdin / project_threejs_ai

https://jsmastery.pro
922 stars 277 forks source link

@react-three/drei contains broken CDN link in v9.58.5 #29

Open Thenlie opened 1 year ago

Thenlie commented 1 year ago

The problem here is that https://github.com/pmndrs/drei references a broken CDN link in their old package versions. So you will need to do a couple of things to fix this:

  1. Update @react-three/drei
    npm install @react-three/drei --latest
  2. Remove this line as that prop is no longer valid on <Decal />

    Note See https://github.com/pmndrs/drei/blob/master/src/core/Decal.tsx#L7 for a list of props


Hope this helps! 👍

I am happy to create a PR with these changes, but it does not look like this is actively maintained. So leaving this here in case others come across the same issue.

Error:

image

K4R7IK commented 1 year ago

Thanks for letting us know. Right now, I was struggling to figure out why it wasn't working.

nam27an commented 1 year ago

I have the exact same issue brother. Did you find a fix to the issues then???

Thenlie commented 1 year ago

I have the exact same issue brother. Did you find a fix to the issues then???

@naman2703 Yep, the entire solution is posted here.

nam27an commented 1 year ago

I have the exact same issue brother. Did you find a fix to the issues then???

@naman2703 Yep, the entire solution is posted here.

just need to remove the specific line 46 only? because it's still not working after removing the line 46. showing the same errors again.

Thenlie commented 1 year ago

just need to remove the specific line 46 only? because it's still not working after removing the line 46. showing the same errors again.

You also need to update the package.

nam27an commented 1 year ago

just need to remove the specific line 46 only? because it's still not working after removing the line 46. showing the same errors again.

You also need to update the package.

Yes I updated that package @react-three/drei as well. But it still doesn't work. Same errors

Thenlie commented 1 year ago

Then there must be a new issue happening as that is all that was needed when I posted this.

nam27an commented 1 year ago

can you like help me out?? need this project up and working. It used to work back then but now it just doesn't. whenever I run it, it display the website for a second and then vanishes.

K4R7IK commented 1 year ago

@naman2703 Ping me up. I'll help you out. Do you use discord? I'll drop mine, so ping me there. Discord: 402373075905282069

Or you can look at my repo as I have completed this project. Click_here

nam27an commented 1 year ago

can't find you on discord. ping me instead - username - theguy2703

jashan1926 commented 1 year ago

just use custom .hdr file like this <Environment files={"little_paris_under_tower_1k.hdr"} /> you can download the file from here use hdr and 1k setting to download file and put the file in public folder.

nam27an commented 1 year ago

It magically started working damn. How did a random file make it work? But the AI doesn't generate anything now. As soon as I give it a request the website breaks and goes all white. what may be the issue?

jashan1926 commented 1 year ago

If this AI was working before you added that environment, then the issue is likely not related to <Environment />. Instead, it is most likely an API key issue. If you have any errors in your console, please share them so I can help.

ayushssshhh commented 9 months ago

image

my shirt model is by default black and does not change it's color. does any one encountered same issue and have any fix??

K4R7IK commented 9 months ago

@ayushssshhh You can refer to my codebase, if the issue isn't fixed yet.

Nishant-chaudhari-7 commented 3 months ago

@ayushssshhh You can refer to my codebase, if the issue isn't fixed yet.

bro can you please help me