Die Aussage
x = $('#msgBox_' + scope.boxId).position().left;
erzeugt ein
error TS2304: Cannot find name '$'
obwohl jquery
und @types
im node_modules Ordner installiert werden.
Mein tsconfig.json sieht wie folgt aus:
{
"compilerOptions": {
"module": "commonjs",
"target": "es5",
"sourceMap": true,
"moduleResolution": "node",
"declaration": true
},
"exclude": [
"node_modules"
]
}
, wie ich das beheben kann?
Wie greifen Sie in Ihrem Code auf '$' zu? Als globale Variable? –
Könnten Sie bitte Ihre tsconfig.json hinzufügen? – OctoD
Versuchen Sie, den Include-Teil zu entfernen. – OctoD