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. docker-machine添加一个已有的docker主机问题2. python - Pycharm的Debug用不了3. java如何高效读写10G以上大文件4. java - 新手求教,当前时间问题?5. apache - nginx 日志删除后 重新建一个文件 就打不了日志了6. html - 用ajax提交表单后,返回验证数据在页面location.href跳转到主页,怎么传递session给主页7. java - tomcat服务经常晚上会挂,求解?8. node.js - node express 中ajax post请求参数接收不到?9. 关于js 字符串 转变成 对应变量10. java - 原生CGLib内部方法互相调用时可以代理,但基于CGLib的Spring AOP却代理失效,为什么?
