2016-11-12 4 views
0

私はロダッシュを稼働させるのに苦労し、thisにやってきました。私はここに記載されているガイドラインに従っていますが、引き続き以下のエラーを受けています。SystemJSローダーがlibs/@ types/lodashの@ types/lodashを見つけることができません

Error: (SystemJS) XHR error (404) loading https://localhost:44382/libs/@types/lodash(…)(anonymous function) @ (index):34ZoneDelegate.invoke @ zone.js:232Zone.run @ zone.js:114(anonymous function) @ zone.js:502ZoneDelegate.invokeTask @ zone.js:265Zone.runTask @ zone.js:154drainMicroTaskQueue @ zone.js:401ZoneTask.invoke @ zone.js:339 

これが私のTSconfigファイルです

{ 
"compileOnSave": true, 
"compilerOptions": { 
"typeRoots": [ 
    "libs/@types/" 
], 
"types": ["lodash"], 
"emitDecoratorMetadata": true, 
"experimentalDecorators": true, 
"watch": true, 
"module": "commonjs", 
"noEmitOnError": true, 
"noImplicitAny": false, 
"outDir": "../wwwroot/appScripts/", 
"removeComments": false, 
"sourceMap": true, 
"target": "es6", 
"moduleResolution": "node" 
}, 
"exclude": [ 
"node_modules", 
"typings/index", 
"typings/index.d.ts", 
"typings/browser", 
"typings/browser.d.ts" 
] 
} 

enter image description here

答えて

0

それは私が使っていたtypescriptですのバージョンがlodashと互換性がありませんでしたが判明しました。 私はtypescript 2.0.8を2.0.3に戻しました。私が使っているlodashのバージョンは4.16.6で、@ types/lodashのバージョンは4.14.38

です
関連する問題