After installing signalr via npm in Visual Studio 2019, I encountered an issue. When the target in my compiler options is set to ES6, I receive the error
TS2307 (TS) Cannot find module '@microsoft/signalr.'
. However, when I change the target to ES5, the error disappears but I encounter a new exception in the browser: Uncaught ReferenceError: exports is not defined.
Below is my tsconfig configuration:
{
"compilerOptions": {
"target": "ES6",
"sourceMap": true
},
"compileOnSave": true
}