R
Railway2y 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
Percy2y ago
Project ID: N/A
Krøn
Krøn2y ago
N/A
jackson
jackson2y 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øn2y ago
yeah i saw this but i dont see a server.js file where is it
jackson
jackson2y 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øn2y ago
nop yeah, cause i checked the files other than node_modules
jackson
jackson2y 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øn2y ago
ohhk thanks man ill try and see
jackson
jackson2y 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 User2y ago
Message Not Public
Sign In & Join Server To View
Krøn
Krøn2y ago
by static url you mean?
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Krøn
Krøn2y 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 User2y ago
Message Not Public
Sign In & Join Server To View
Krøn
Krøn2y ago
i cloned the repo locally
Krøn
Krøn2y ago
Krøn
Krøn2y ago
this is the error
Krøn
Krøn2y ago
Krøn
Krøn2y ago
the webpage isnt loading , i tried all of the 3 urls
jackson
jackson2y 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 User2y ago
Message Not Public
Sign In & Join Server To View
Krøn
Krøn2y 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 User2y ago
Message Not Public
Sign In & Join Server To View
Krøn
Krøn2y ago
just shoot out anything and ill try to google the rest
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Krøn
Krøn2y ago
ohhh thank you again man ill check it out
Want results from more Discord servers?
Add your server