The statement
x = $('#msgBox_' + scope.boxId).position().left;
generates an
error TS2304: Cannot find name '$'
although jquery
and @types
are installed in the node_modules folder.
My tsconfig.json looks like that:
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"sourceMap": true,
"moduleResolution": "node",
"declaration": true
},
"exclude": [
"node_modules"
]
}
How can I fix that?