
Tag: reactjs
reactjs – Proxy error (React): Econnreset & Econnrefused fix?
Proxy Errors Im getting an error: Proxy error: Could not proxy request /api/calendar/get-events?start=2022-05-28T23:00:00.000Z&end=2022-07-09T23:00:00.000Z from localhost:3000 to localhost:5000/. See nodejs.org/api/errors.html#errors_common_system_errors for more information (ECONNRESET). Proxy error: Could not proxy request /api/calendar/get-events?start=2022-05-28T23:00:00.000Z&end=2022-07-09T23:00:00.000Z…
reactjs – connect amqplib (RabbitMQ) react and typescript
install packages i.imgur.com/XfPg1p3.png try connect amqp with backend and get an error install “@types/amqplib”: “^0.8.2″,”amqplib”: “^0.8.0”, import amqp from ‘amqplib/callback_api’ const Notifications = ({ isMobile }:any):JSX.Element => { useEffect(() =>…
reactjs – I am showing error on react JS so how can do solve problem?
Unexpected error. Please report it as a bug: Error: spawn UNKNOWN at ChildProcess.spawn (node:internal/child_process:412:11) at Object.spawn (node:child_process:698:9) at spawn (C:UsersTriotreeAppDataRoamingnpmnode_modulescreate-react-appnode_modulescross-spawnindex.js:12:24) at C:UsersTriotreeAppDataRoamingnpmnode_modulescreate-react-appcreateReactApp.js:390:19 at new Promise (<anonymous>) at install (C:UsersTriotreeAppDataRoamingnpmnode_modulescreate-react-appcreateReactApp.js:341:10) at…
reactjs – How to test React.js page that uses Context and useEffect?
I’m having trouble testing a page that has Context and useEffect using Jest and Testing-library, can you help me? REPO: github.com/jefferson1104/padawan My Context: src/context/personContext.tsx import { createContext, ReactNode, useState }…
javascript – React js application is not starting to port 3000
I am trying to start the react application and by default it opens localhost:3000/portfolio and web page shows blank. and when I change the url to localhost:3000 from browser then…
reactjs – How can I create buttons like select option in react.js?
I use this API: mui.com/components/menus/#customization I want to create something like the select option with the button, and if a value is selected, the same value will be set as…
Arrow syntax functions in React – React.js
This question is dealing with a step for the Animal Fun Facts project. (www.codecademy.com/courses/react-101/projects/js-react-animal-fun-facts) Specifically, for step 9, we must create a event handler function – {displayFact(e)} I originally defined…