node.js - webpack typescript2.x 出现Duplicate identifier错误
问题描述
问题解答
回答1:解决了修改tsconfig.json
{ 'compilerOptions': { 'declaration': false, 'emitDecoratorMetadata': true, 'experimentalDecorators': true, 'module': 'commonjs', 'moduleResolution': 'node', 'outDir': 'dist', 'sourceMap': true, 'sourceRoot': 'src', 'target': 'es5', 'types': [ 'node', 'core-js', 'express' ], 'baseUrl': '.' }, 'include': [ 'src/**/*' ], 'exclude': [ 'node_modules', 'dist' ], 'awesomeTypescriptLoaderOptions': { 'useWebpackText': true, 'forkChecker': true }, 'compileOnSave': false, 'buildOnSave': false, 'atom': { 'rewriteTsconfig': false }}
相关文章:
1. vim - docker中新的ubuntu12.04镜像,运行vi提示,找不到命名.2. 请问是对象还是数组3. java - socket类服务端如何防止被ddos攻击?4. mysql数据库在更新某种情况的时候,会将null或者空字符串置成-1?5. python - 如何使用websocket在网页上动态示实时数据的折线图?6. javascript - js中关于闭包的问题,昨晚纠结到了现在,已经快死了7. css - 移动端字体适配问题8. MYSQL 的 SELECT 语句中如何做到判断字段为空9. python - django 中的 views 输出编码问题10. html - css 英文段落换行,单词截断
