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. 淺談vue生命周期共有幾個階段?分別是什么?2. Java EE 6:JSF與Servlet + JSP我應該學習JSF嗎?3. java - hibernate正向工程生成一對多關系模型無報錯,但是只生成了一張表4. java - Spring使用@Autowired失效但是getBean()可以執行成功5. javascript - js正則匹配小括號中的內容6. macos - mac下docker如何設置代理7. index.php錯誤,求指點8. 微信開放平臺 - android 微信支付后點完成按鈕,后回調打開第三方頁面,屏幕閃動,求解決方法9. 微信公眾號在線生成二維碼帶參數怎么搞?10. css box-shadow 單邊 單角陰影
