Killer🔪
KPCKevin Powell - Community
•Created by Killer🔪 on 2/7/2024 in #back-end
JSON.parse unexpected error
I am making a MERN stack app where I have made a DB using Mongo Atlas and using node.js and express to fetch the data in my react app. I am calling the data using an
useEffect()
and awaiting the data as well. When I am trying to convert the data into json, it is giving me the error of
Uncaught (in promise) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
I am stuck here and cant solve this. I tried many different posts on net but none worked for me.
The backend server is running on localhost:4000
and react app is on localhost:5173
. I tried CORS
and even adding a proxy in package.json
but that also didnt work.
Here is my Github link:
https://github.com/Pulkit-s21/_mernStack/tree/main/_workoutApp
I would really appreciate any and all help14 replies
KPCKevin Powell - Community
•Created by Killer🔪 on 1/29/2024 in #back-end
Arrows function can't be hoisted?
4 replies
KPCKevin Powell - Community
•Created by Killer🔪 on 1/15/2024 in #front-end
Difference between <Doctype> and <!Doctype>
I recently gave an interview and was asked the question to tell the difference between
and
I searched on the net but there is no answer.
Can someone help me with this?
3 replies
KPCKevin Powell - Community
•Created by Killer🔪 on 11/8/2022 in #front-end
Take full space of the grid col
10 replies
KPCKevin Powell - Community
•Created by Killer🔪 on 10/1/2022 in #front-end
0 is causing calculation problem
9 replies
KPCKevin Powell - Community
•Created by Killer🔪 on 9/26/2022 in #front-end
Cant see the images
Everything works fine when I run it on local server but once I upload it to netlify or even vercel, the images dont show up at all. I tried uploading images on net and then using the URL, the images are uploaded with the folder on github but nothing works.
Github URL: https://github.com/Pulkit-s21/testimonial-carousel.git
Live Site URL: https://lambent-gecko-019da2.netlify.app/
12 replies
KPCKevin Powell - Community
•Created by Killer🔪 on 9/23/2022 in #front-end
Input type number
2 replies
KPCKevin Powell - Community
•Created by Killer🔪 on 9/20/2022 in #front-end
Justify-between not working with Tailwind
I made a todo list project and I used Tailwind and when I uploaded the project on netlify, it doesnt recognize the justify-between there and just ignores it. It does this with some other things like text size cursor pointer and I cant figure out why this is happening. Please help me in fixing this
Github repo: https://github.com/Pulkit-s21/todo-list.git
Live Site URL: https://todo-list-f26be6.netlify.app/
23 replies