You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error is TypeError: Cannot set property originalUrl of #<Request> which has only a getter.
@DadiBit, the author of the issue, suggests that it is possible to extend Request to add the possibility for vite to change the property.
As I'm writing an adapter that would allow users to switch between Express and HyperExpress, my question is: how would one extend this class and 'inject' it in the HyperExpress process?
Any tip would be greatly appreciated.
Thank you.
The text was updated successfully, but these errors were encountered:
Hello and thank you for this work!
As quoted in this issue vite development server writes to the
originalUrl
property ofRequest
which doesn't work withHyperExpress
.I guess at least at these lines in vite:
serveStaticMiddleware
serveRawFsMiddleware
The error is
TypeError: Cannot set property originalUrl of #<Request> which has only a getter
.@DadiBit, the author of the issue, suggests that it is possible to extend
Request
to add the possibility for vite to change the property.As I'm writing an adapter that would allow users to switch between Express and HyperExpress, my question is: how would one extend this class and 'inject' it in the HyperExpress process?
Any tip would be greatly appreciated.
Thank you.
The text was updated successfully, but these errors were encountered: