typescript - Getting error-highlighting on things like `Object.assign` and `Promise<any>` -


hi i'm having problems supporting "lib" property in tsconfig when using webstorm 2016.2.2.

i've tried editing typescript version in ide preferences (preferences -> languages & frameworks -> typescript) , pointing globally-installed typescript 2.0 version, i'm still getting error-highlighting on things object.assign , promise<any>.

i've restarted ide multiple times, , nothing seems change, ideas on how fix or debug this?

//tsconfig.json {   "compileroptions": {     "target": "es5",     "module": "commonjs",     "emitdecoratormetadata": true,     "experimentaldecorators": true,     "sourcemap": true,     "noemithelpers": true,     "strictnullchecks": false,     "baseurl": "./src",     "paths": {         "core": ["app/core"],         "reactive": ["app/reactive"],         "models": ["app/models"],         "services": ["app/services"]     },     "lib": [       "dom",       "es6"     ],     "types": [       "hammerjs",       "jasmine",       "node",       "protractor",       "selenium-webdriver",       "source-map",       "uglify-js",       "webpack"     ]   },   "exclude": [     "node_modules",     "dist"   ],   "awesometypescriptloaderoptions": {     "forkchecker": true,     "usewebpacktext": true   },   "compileonsave": false,   "buildonsave": false,   "atom": { "rewritetsconfig": false } } 

you specified:

"target": "es5" 

so compiler compile regular lib.d.ts , not lib.es6.d.ts , es6 features such object.assign , promise , others missing.

change

"target": "es6" 

and should fine.


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

mapreduce - Resource manager does not transit to active state from standby -

serialization - Convert Any type in scala to Array[Byte] and back -