junlarsen/league-connect

Using PNPM to install dependencies causes the project to report an error

mfts2048 opened this issue · 2 comments

image
Because the request was sent using createHttp1Request

I don't use PNPM so I can't help much with this, but whatwg-url is a dependency of node-fetch which was used in the old request() method.

I am however confused as to why you are sending the HTTP requests from the frontend (Electron?)

If you are using Electron all requests to the LCU api should be done on the main process, not renderer

I'll take your advice