Mikkel ALMONTE--RINGAUD
Mikkel ALMONTE--RINGAUD
Still have the issue with `"typescript": "^4.9.4"` and `"@interactjs/interact": "^1.10.17"` In my file, I imported like this: ```typescript import "@interactjs/auto-start"; import "@interactjs/actions/resize"; import "@interactjs/modifiers"; import interact from "@interactjs/interact"; ``` and...
To prevent including the code during Vite build (and also prevent TS errors when the file doesn't exists), I did a virtual module with Vite that apply this little piece...
> Maybe I should write a build plugin so it directly imports it in the index.html file. So I did it, because it's a little bit cleaner and even for...
Also, I forgot to precise it, but using `ws` module in Bun results in the same output
Still happens on Bun v1.0.0 by the way
Found a way to tackle the issue using [`websocket-driver`](https://www.npmjs.com/package/websocket-driver) ([github](https://github.com/faye/websocket-driver-node)) and `node:tls` (from bun) ```typescript import tls from 'node:tls'; import websocket from 'websocket-driver'; const driver = websocket.client('wss://remote-auth-gateway.discord.gg/?v=2'); driver.setHeader('Origin', 'https://discord.com'); const...
Made a package to make all this easier, until Bun fixes it themselves :') > https://github.com/Vexcited/tcp-websocket `bun add tcp-websocket` ```typescript import TCPWebSocket from "tcp-websocket"; const ws = new TCPWebSocket("wss://remote-auth-gateway.discord.gg/?v=2", {...
> but is probably related with Origin headers. Yes the issue is that: Origin header gets cased to `origin` and some servers don't support lowercased headers and it just returns...
> Solved in bun 1.1 :) Still having issues with the headers casing (it's not applying the case from JS) so it's still bugged for me. (ex: `Some-Header` -> `some-header`...
I want to add that this only happens in development mode. When you generate a production build, it actually builds CSR and all those SSR errors disappear. But anyway, it's...