TS2304 Cannot find name 'Map', 'Set', 'Promise'
来源:互联网 发布:网络诈骗钱能追回吗 编辑:程序博客网 时间:2024/04/29 14:37
此问题解决地址
解决地址:https://stackoverflow.com/questions/39416691/webpack-ts2304-cannot-find-name-map-set-promise
原因
由于Map和Set是es6的特性,之前我的tsconfig.json设置的"target" : "es5"
导致不能引入新的特性,因此需要更换为"target" : "es6"
再执行就Ok了
{ "compilerOptions": { "target": "es6", "sourceMap": true, "experimentalDecorators": true, "emitDecoratorMetadata": true, "module": "system", "moduleResolution": "node", // <----- "noImplicitAny": false // "outDir": "../../templates/build", // "rootDir": "../../templates/script" } // "exclude": [ // "node_modules", // "typings/main", // "typings/main.d.ts" // ] , "include": ["./script/**/*"] , "exclude": ["node_modules","js"]}
阅读全文
0 0
- TS2304 Cannot find name 'Map', 'Set', 'Promise'
- tsc - error TS2304 Cannot find name 'Set'/'Promise'
- 在配置primeng环境时遇到Error TS2304: Cannot find name 'Map'或has no exported member 'DomSanitizer'
- TypeScript Cannot find name 'Symbol'
- cannot find class for bean with name ''
- Cannot find name 'Article'的解决方案
- std::find ,set.find, multiset.find, map.find和multimap.find算法总结
- id: cannot find name for group ID 528
- cannot find class [xxx] for bean with name
- Cannot find interface declarartion for 'nsobject' & Unknow type name 'NSString'
- whoami: cannot find name for user ID xxxx
- cannot find class [xxx] for bean with name
- 出现Cannot find bean name in any scope的解决办法
- Cannot find class for bean with name解决
- spring设置构造,name,ref,map,set,list赋值
- Cannot find ccn.jar, set CCN_HOME env variable.解决方法
- chrome 原生promise 实现 promise.map
- Cannot find bean under name org.apache.struts.taglib.html.BEAN
- Android res 资源文件
- C# Winform 跨线程更新UI控件常用方法总结
- codeforces 814C An impassioned circulation of affection
- DevExpress GridControl 设置单元格 某一行的背景色
- Spring与Ehcache整合
- TS2304 Cannot find name 'Map', 'Set', 'Promise'
- android开启震动
- 顶级程序员的10条最佳实践
- OpenCL 环境适配流程
- WordPress主题制作全过程(七):制作sidebar.php
- android源代码中repo升级后出现的问题
- js取unix timestamp时间戳
- 通过百度地图获取填写的地理位置经纬度
- 《道德经》·第二十八章