React + Vite DeprecationWarning for OutgoingMessage.prototype._headers
I created a new react project using the React + Vite template, when i run npm start and go to my browser i get
DeprecationWarning for OutgoingMessage.prototype._headers
and the webpage wont be loading, does anyone have any fixes?26 Replies
Project ID:
N/A
N/A
does this help at all? it looks like you can replace
._headers
with .getHeaders()
https://stackoverflow.com/questions/56697360/how-to-fix-node12388-dep0066-deprecationwarning-outgoingmessage-prototypeStack Overflow
How to fix (node:12388) [DEP0066] DeprecationWarning: OutgoingMessa...
I am new to nodes.I have install nosejs version v12.4.0, npm 6.9.0 , http-server 0.11.1 and visual studio code.I want to open my hello word project with my http-server,it is in Visual studio code. ...
yeah i saw this but i dont see a server.js file
where is it
are you following a tutorial? if so you should just search
._headers
in your project directory
see if it appears there
if it appears in node_modules
it will get a little more complicatednop
yeah, cause i checked the files other than node_modules
hmmmmmm if you search it in node_modules what package does it appear in
what you can do is use something like
patch-package
to dynamically modify the src code and change the ._headers
callohhk thanks man
ill try and see
yeah it's kinda a pain
but should work
there might be a better way to do this though
or a more fundamental issue im missing
but i cannot ping nebula to bring him in here!!!
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
by static url you mean?
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
actually i removed the service so ill save up on some credits. it works perfectly fine tho
its during development that its not working
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
i cloned the repo locally
this is the error
the webpage isnt loading , i tried all of the 3 urls
well it's telling you what the issue is, there's no route configured to serve content at the
/
path, this looks like an issue with the code, not with railwayUnknown User•3y ago
Message Not Public
Sign In & Join Server To View
no😅
alright ill try it now
thank you...
it worked
but why do we have to run build first ? any idea
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
just shoot out anything and ill try to google the rest
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
ohhh thank you again man
ill check it out