All Questions
5,830
questions
0
votes
0
answers
11
views
deploy a react.js site with data .json file in netlify
I have a react.js QuizApp project with question json file in data folder. I try to deploy that in Netlify site,but in it's demo when it is deployed, data don't load. It's demo works as long as, Npm ...
0
votes
1
answer
27
views
How to prevent a React component from freezing the page after loading?
I am using the following library uiwjs/react-json-view, it is the typical library to view json. The issue is that I want it to load a large json. But when it does, it freezes the page in the process. ...
0
votes
0
answers
15
views
Bad request error at server side when i receive a json object
I am just making a simple axios post request to server. But I cannot understand why am I getting a bad request error. I send the data in json and i expect the data in json. But I am still getting a ...
1
vote
0
answers
26
views
ReactJS: ResizeObserver loop completed with undelivered notifications
I'm seeing the following error when I submit a particular form
This is happening when I submit a edit form but I don't see this error when I submit a add form.
I have checked thoroughly in my codebase ...
0
votes
0
answers
19
views
Accessing API in Node to the React NextJs throwing error
import _regeneratorRuntime from "@babel/runtime/helpers/esm/regeneratorRuntime";^^^^^^
SyntaxError: Cannot use import statement outside a moduleat wrapSafe (node:internal/modules/cjs/loader:...
0
votes
1
answer
26
views
Flask "error": "415 Unsupported Media Type: Did not attempt to load JSON data because the request Content-Type was not 'application/json'."
I am building a backend for my react app using flask. Using an openai api to generate cover letters from submitted form data.
from flask import Flask, request, jsonify
from flask_cors import CORS
...
-1
votes
0
answers
19
views
Handling non-JSON responses in React useRequest hook
I deployed my React project, but it doesn't work as expected. In development mode, everything works fine, but in production json is not read properly. Here is my code where error happens:
import { ...
0
votes
0
answers
20
views
JSON data (mostly numbers), 1000+ characters long, making the QR code too crowded for scanners to recognize. Any ideas to solve it?
Here is my thing: so I need to generate a QR code for my data. My data is in JSON format, primarily numbers. I also use react typescript and nextjs on the front end. But my proof is super long, which ...
0
votes
1
answer
39
views
I am requesting access token from FHIR sandbox and receive token but error of invalid_grant
I am requesting an access token from FHIR sandbox for a standalone web app (no client secret). On my redirect page I collect code and state from URL, and then fetch access token.
export default ...
0
votes
0
answers
25
views
react and php, Cannot post. Can't find the cause [duplicate]
I was developing my web app with react and I got stuck in the login section. My code was supposed to get the form inputs from the frontend to back end and then sort the data but the issue is that ...
0
votes
0
answers
29
views
Can I ' npm run watch' to get the latest changes from a git repo in to my react application without rebuilding it?
I have a react application where I am going to use json from another git repo.
I want to get the latest changes from that git branch whenever new changes were pushed into it in my local react app by ...
-1
votes
1
answer
39
views
Uncaught (in promise) SyntaxError: Unexpected end of JSON input in react
I'm trying to send a new product data to my server and i get this err
Uncaught (in promise) SyntaxError: Unexpected end of JSON input
while the object that i've entered in JSON is not empty
const ...
-2
votes
0
answers
24
views
Im learning React using Vite, but I can't get past this error
This error occurs when I close my Visual Studio Code editor and then reopen it and run the command npm run dev. It was working fine before I closed Visual Studio.
npm ERR! code ENOENT
npm ERR! syscall ...
0
votes
0
answers
30
views
Trouble verifying Google token in Flask application
I'm developing a web application using Flask for the backend and React for the frontend, integrating Google Sign-In using OAuth2. I have a /verify-google-token endpoint in Flask to handle POST ...
0
votes
0
answers
40
views
I'm having an data loss issue using line Graphs in ApexCharts
ApexCharts seems to modify/remove some data, I'm not quite sure if this is a skill issue of mine, or something else.
I'm getting data from an API from my server, the APIs data is intact and seems to ...