node.js - webpack typescript2.x 出現(xiàn)Duplicate identifier錯(cuò)誤
問題描述
問題解答
回答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 }}
相關(guān)文章:
1. java - IDEA每個(gè)修改完代碼,重啟tomcat,但是似乎還是之前的代碼2. java類加載機(jī)制-類定義中new如何理解3. android - 使用vue.js進(jìn)行原生開發(fā)如何進(jìn)行Class綁定4. java - c++ 經(jīng)常出現(xiàn)error LNK20195. 小白問題getDay()6. mySql排序,序號7. 常量在外面不加引號會報(bào)錯(cuò)。8. mysql取模分表與分表9. 怎么在phpstudy中用phpexcel上傳數(shù)據(jù)到MYSQL?10. wordpress里,這樣的目錄列表是屬于小工具還是啥?
