adrianhajdin / project_threejs_ai

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

Bug fix for unavailable CDN resource. #45

Open ChooKing opened 1 year ago

ChooKing commented 1 year ago

Updated drei and fiber to latest version. Changed "map-anisotropy" to "anisotropy" in Shirt.jsx.

ChooKing commented 1 year ago

Fixes issue #29

Anand8216 commented 11 months ago

Screenshot 2023-10-19 002615 I got this error and i'm unable to fix this error. please help me to fix this

i got hi same error please fix this asap

AnshAtreja commented 10 months ago

Screenshot 2023-10-19 002615 I got this error and i'm unable to fix this error. please help me to fix this

i got hi same error please fix this asap

Did anyone get the solution? If yes then please tell

ayushssshhh commented 9 months ago

292600216-899be984-edf6-48b9-9300-97b85634fa8f

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

AnshAtreja commented 9 months ago

292600216-899be984-edf6-48b9-9300-97b85634fa8f

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

Im not having this issue but I'm not able to add shadows to the TShirt as Environment preset is not working, can you tell how did u add the shadow to the tshirt please?

sufi-mubashar commented 9 months ago

[Failed to load PostCSS config: Failed to load PostCSS config (searchPath: C:/Users/pp/Desktop/ThreeJs/client): [Error] Loading PostCSS Plugin failed: Cannot find module 'autoprefixer' Require stack:

(@C:\Users\pp\Desktop\ThreeJs\client\postcss.config.js) Error: Loading PostCSS Plugin failed: Cannot find module 'autoprefixer' Require stack:

(@C:\Users\pp\Desktop\ThreeJs\client\postcss.config.js) at load (file:///C:/Users/pp/Desktop/ThreeJs/client/node_modules/vite/dist/node/chunks/dep-R0I0XnyH.js:37375:11) at file:///C:/Users/pp/Desktop/ThreeJs/client/node_modules/vite/dist/node/chunks/dep-R0I0XnyH.js:37400:16 at Array.map () at plugins (file:///C:/Users/pp/Desktop/ThreeJs/client/node_modules/vite/dist/node/chunks/dep-R0I0XnyH.js:37399:8) at processResult (file:///C:/Users/pp/Desktop/ThreeJs/client/node_modules/vite/dist/node/chunks/dep-R0I0XnyH.js:37469:14)
at file:///C:/Users/pp/Desktop/ThreeJs/client/node_modules/vite/dist/node/chunks/dep-R0I0XnyH.js:37599:14]

Node.js v20.10.0

I am facing this issue and not getting output can anyone help me out there please

Merwin-Rebello commented 9 months ago

Can anyone help me because the shirt is only not displaying on the page

Merwin-Rebello commented 9 months ago

Can anyone help me because the shirt is only not displaying on the page

got the error sorted

JusticeChaudhari commented 9 months ago

Could not load potsdamer_platz_1k.hdr: Failed to fetch at Object.onError (http://localhost:3000/static/js/bundle.js:5339:36) at http://localhost:3000/static/js/bundle.js:140550:40

getting this error and also the Shirt component is not getting rendered

ShivamB15 commented 8 months ago

Failed to load resource: the server responded with a status of 500 (Internal Server Error) can anyone help

beetroze10 commented 8 months ago

am gettting this error as i load my nodemon server even after updating it cannot connect to the local host in the customizer here the error [nodemon] restarting due to changes... [nodemon] starting node index.js file:///C:/Users/beetr/OneDrive/Desktop/threejs/server/routes/dalle.routes.js:3 import { Configuration, OpenAIApi} from 'openai'; ^^^^^^^^^^^^^ SyntaxError: The requested module 'openai' does not provide an export named 'Configuration'
at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21) at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)

Node.js v18.17.1 [nodemon] app crashed - waiting for file changes before starting... so my local host http://localhost:8080/api/v1/dalle does not work making me not make a logo using the ai. which gpt is used 3 or 4????

hizya commented 8 months ago

my shirt can not change color

EvroHQ commented 8 months ago

i'm getting this error:

file:///C:/Users/beetr/OneDrive/Desktop/threejs/server/routes/dalle.routes.js:3 import { Configuration, OpenAIApi} from 'openai'; ^^^^^^^^^^^^^ SyntaxError: The requested module 'openai' does not provide an export named 'Configuration' at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21) at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)

someone to explain please ?

Anthonyjgr commented 7 months ago

i'm getting this error:

file:///C:/Users/beetr/OneDrive/Desktop/threejs/server/routes/dalle.routes.js:3 import { Configuration, OpenAIApi} from 'openai'; ^^^^^^^^^^^^^ SyntaxError: The requested module 'openai' does not provide an export named 'Configuration' at ModuleJob._instantiate (node:internal/modules/esm/module_job:124:21) at async ModuleJob.run (node:internal/modules/esm/module_job:190:5)

someone to explain please ?

Hi the problem is on the "openai" module, i solved it by deleting the node modules and installing them again with this versions: { "name": "server", "version": "1.0.0", "type": "module", "description": "", "main": "index.js", "scripts": { "start": "nodemon index" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { "axios": "^1.6.7", "cloudinary": "^1.35.0", "cors": "^2.8.5", "dotenv": "^16.0.3", "express": "^4.18.2", "mongoose": "^7.0.3", "nodemon": "^2.0.22", "openai": "^3.2.1" } } image

hakambachi commented 7 months ago

Can anyone help me because the shirt is only not displaying on the page

how did you fix it buddy please help me

naman1512 commented 7 months ago
er2 er1

I am having the following error when working on the backend. I am unable to fetch the images for the AI picker. I am on the latest version of openai. All the syntax has been changed to the latest version but still it doesn't seem to work. Please help me out. Appreciate it.

rhyno3117 commented 7 months ago

I also have this problem. I have updated code to have latest version of openai and that mainly was removing Configuration. I am running into these same problems and get a bunch of errors in my console once i click on the "AI Logo" or "AI Full" when asking the AI to create image.

AnshAtreja commented 7 months ago

I also have this problem. I have updated code to have latest version of openai and that mainly was removing Configuration. I am running into these same problems and get a bunch of errors in my console once i click on the "AI Logo" or "AI Full" when asking the AI to create image.

the AI is paid, so you either you would need to pay or use a free api, if you want free one i recommend Clipdrop API

Mike-00000 commented 7 months ago

I also have this problem. I have updated code to have latest version of openai and that mainly was removing Configuration. I am running into these same problems and get a bunch of errors in my console once i click on the "AI Logo" or "AI Full" when asking the AI to create image.

I have the same problem. Did you find a solution ?

rhyno3117 commented 7 months ago

Hey Mike,

I basically commented out a lot of the buttons for the AI part but I still have it there to add in the future. I concluded from other people that openAI now costs money so we basically cannot use this function unless you sign up and pay.

On Mon, Mar 4, 2024 at 12:45 AM Mike @.***> wrote:

I also have this problem. I have updated code to have latest version of openai and that mainly was removing Configuration. I am running into these same problems and get a bunch of errors in my console once i click on the "AI Logo" or "AI Full" when asking the AI to create image.

I have the same problem. Did you find a solution ?

— Reply to this email directly, view it on GitHub https://github.com/adrianhajdin/project_threejs_ai/pull/45#issuecomment-1976027824, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBKYYQVPFRYI2Q4GCDUCP4DYWQYCJAVCNFSM6AAAAAA42OXWRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZWGAZDOOBSGQ . You are receiving this because you commented.Message ID: @.***>

Mike-00000 commented 6 months ago

Hey Mike, I basically commented out a lot of the buttons for the AI part but I still have it there to add in the future. I concluded from other people that openAI now costs money so we basically cannot use this function unless you sign up and pay. On Mon, Mar 4, 2024 at 12:45 AM Mike @.> wrote: I also have this problem. I have updated code to have latest version of openai and that mainly was removing Configuration. I am running into these same problems and get a bunch of errors in my console once i click on the "AI Logo" or "AI Full" when asking the AI to create image. I have the same problem. Did you find a solution ? — Reply to this email directly, view it on GitHub <#45 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBKYYQVPFRYI2Q4GCDUCP4DYWQYCJAVCNFSM6AAAAAA42OXWRKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZWGAZDOOBSGQ . You are receiving this because you commented.Message ID: @.>

Thank you for your answer. So you didn't try another logo/image creator instead of dalle/openai ?

LakshyaNayyar18 commented 5 months ago

can someone send me save button code

FatenBorchani commented 4 months ago

for me the site doesnt work it works 1 sec then turns white can someone help me ?

seedhantkalra commented 4 months ago

Getting the same error as @FatenBorchani. Can someone please help???

seedhantkalra commented 4 months ago

I updated three and drei to the latest version and removed the Configuration. Project is working fine except the AI part of it. When I enter a prompt and click the AI logo or AI full button, the entire screen goes white and I get this error. Screenshot 2024-05-22 001856

Nishant-chaudhari-7 commented 3 months ago

292600216-899be984-edf6-48b9-9300-97b85634fa8f

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

did you solve this error

bharath4raj commented 2 months ago

Some one please help me understand why the color remains the same. is there any config file need to be updated.

sahile-jhalak commented 1 month ago

Screenshot 2024-08-13 145506 I give some prompt to Ai convert into logo but not create image

please fix my error

SrishtiChamoli commented 1 month ago

Screenshot 2024-08-13 145506 I give some prompt to Ai convert into logo but not create image

please fix my error

I updated three and drei to the latest version and removed the Configuration. Project is working fine except the AI part of it. When I enter a prompt and click the AI logo or AI full button, the entire screen goes white and I get this error. Screenshot 2024-05-22 001856

Did you fix this?? if yes..then please help!

Kaleem7929 commented 2 weeks ago

shirt-center

customizer_after -b996648893e4)

indexjs

The shirt glb model is not in Center although it is in the center tag from the '@react-three/drei' [it is in the Center horizontally but not vertically]

can anyone please help me fix this issue? Thank you