-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WARNING in ./node_modules/timeago.js/esm/utils/dom.js #8
Comments
the error you are facing is not related to timeago.js. even though that library has some issues. i have used redis db for a simple ratelimiter middleware.
also in the response body change |
Thank you for your reply EyuCoder.
|
Hi all, Always the same issues: |
ah, sorry, also tried with a virtualenv, the same. with 7 high severity vulnerabilities. and no issue on npm install in server:
|
Go to client folder and delete node modules folder and run |
Thank you EyuCoder for your reply and for your time. I will add one more thing that I have never reported before, that the browser opens with the title "ChatGPT Clone" but the page is completely blank.
|
when the screen is blank you should always go to chrome dev console tab |
these errors are just warning so the right error will be found there |
and:
On .env file into client folder, I've only set the first line:
|
but I don't want to use firebase (which I don't know), I thought the script would work just locally. |
in that case i will just create a new branch with firebase and redis removed |
you are very kind |
i have added the new branch and also changed the library causing too much warning. you can read the instruction on the readme here |
Thank you EyuCoder,
|
i think you should first learn the basics of react and node first to make your life easier. also go to server and run the server there. in client run the client with npm start also in the server run the server with npm start. also make sure to insert openai key in the server env file |
hello, i followed your guide:
I tried to start the server and the client separately but same issue:
on preview tab: on console tab
|
make sure you run them on different port. example - react on 3000 and node on 3001 |
no, isn't this the issue. and the port is changed:
I think the error isn't on port but on these two lines: |
Did you set |
I tried to set it with: |
you have to also add port |
in this format |
make it with the right port, same issue.
on console, after the "npm start dev"
If I try to open the 10.5.0.2:5500 the browser cannot find the address, with localhost:5500 yes but I receive always the same error message: NB: I display the error after I press the SEND key. |
|
ok sorry for the mistake on client side for the API, just tried a lot of time with different configuration. Following the ChatView.js
|
then its probably from your setup. i cant help you with that. maybe try running both server and client on the same machine. and use |
I am running both client and server on the same pc, and launch npm run dev from the /client folder as specified. |
thats a firebase error. it uses popup for login |
i solved it but having issue with vercel on front end |
i have updated the .env format for local_setup btw. make sure yours also match's that format |
show me the server |
sorry, but I didn't understand the request. |
Wait..., of all the tests we had done, I had set the react port from the configuration to 5500. first shell:
second shell
WORKS!!! one shell:
doesn't works Thanks for the help, really |
local or live? |
All local, client and server on the same machine |
Hello everyone,
I wanted to try to run the client and server locally.
I followed the guide in the readme but when I launch the server I get errors:
I checked the folder:
Directory di C:\Users\gabri\chatgpt-clone\client\node_modules\timeago.js
And in fact there is no src folder.
Also it gives me connection refused error on port 6379 but I don't have anything else occupying the port and I'm on local, so I guess I don't need to do a nat on router (in any case I tried it anyway before bothering you but didn't solve it).
Can anyone help me figure out where I'm going wrong?
thanks in advance
The text was updated successfully, but these errors were encountered: