It seems like there may be an issue with my tsconfig file or something similar.
npm run compile
> <a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0c69626b6562694c3d223c">[email protected]</a> compile /Users/[...]/engine
> tsc
node_modules/@types/socket.io-redis/index.d.ts:76:45 - error TS2694: Namespace '"/Users/[...]/node_modules/socket.io/dist/index"' does not have a exported member 'Adapter'.
76 interface RedisAdapter extends SocketIO.Adapter {
Upon checking the socket.io/dist/index
file, it seems that the Adapter interface is actually exported on line 835 within the SocketIO
namespace.
I haven't used these @types packages in TypeScript before, but my project follows a standard gts setup:
{
"extends": "./node_modules/gts/tsconfig-google.json",
"compilerOptions": {
"rootDir": ".",
"outDir": "build"
},
"include": [
"src/**/*.ts",
"test/**/*.ts"
]
}
Can anyone point out where I might be making a mistake?