R
Railway3y ago
Krøn

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
Percy
Percy3y ago
Project ID: N/A
Krøn
KrønOP3y ago
N/A
jackson
jackson3y ago
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-prototype
Stack 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. ...
Krøn
KrønOP3y ago
yeah i saw this but i dont see a server.js file where is it
jackson
jackson3y ago
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 complicated
Krøn
KrønOP3y ago
nop yeah, cause i checked the files other than node_modules
jackson
jackson3y ago
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 call
Krøn
KrønOP3y ago
ohhk thanks man ill try and see
jackson
jackson3y ago
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
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Krøn
KrønOP3y ago
by static url you mean?
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Krøn
KrønOP3y ago
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
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Krøn
KrønOP3y ago
i cloned the repo locally
Krøn
KrønOP3y ago
Krøn
KrønOP3y ago
this is the error
Krøn
KrønOP3y ago
Krøn
KrønOP3y ago
the webpage isnt loading , i tried all of the 3 urls
jackson
jackson3y ago
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 railway
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Krøn
KrønOP3y ago
no😅 alright ill try it now thank you... it worked but why do we have to run build first ? any idea
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Krøn
KrønOP3y ago
just shoot out anything and ill try to google the rest
Unknown User
Unknown User3y ago
Message Not Public
Sign In & Join Server To View
Krøn
KrønOP3y ago
ohhh thank you again man ill check it out
Want results from more Discord servers?
Add your server