error: Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the
server:
dynamacily bind dependent select list on change of parent list item not working in react js and node js
I have 2 select list about sbu list and department list. I want to update department list according to onChange event selected value of sbu list item. but as per my codes it sometimes workd only when I change a value it updates not with currently selected value but works that value which selected value is lost.
Node.js v20.12.2 [nodemon] app crashed – waiting for file changes before starting
I was following a tutorial on YouTube of freecodecamp with the title “MERN Stack Tutorial – Book Store Project”
I am trying to run it on port 5555
I am still at the start of project just trying to check if the server is running or not
here is the link https://www.youtube.com/watch?v=-42K44A1oMA
And the problem is I am facing an issue after running the command “npm run dev” as I am getting this error: Node.js v20.12.2
[nodemon] app crashed – waiting for file changes before starting… screenshot for referenceerror screenshot
i am encountering this type of error , please anyone help me
`node:internal/modules/cjs/loader:1147
throw err;
^