No matching export in for import "WebSocketPair" even though I see the type.
I have a weird error where when I run wrangler it doesn't see the export of the WebSocketPair type even though I see the exported type in the file the log is referencing.. Also, other types work like "DurableObjectState"
Here is where is it messing up:
Here is my package.json:
1 Reply
For anyone that gets the same issue, the solution is quite simple.
Instead of importing the types, simply add the type to the tsconfig.