John Hou

Results 6 comments of John Hou

maybe you should check your `declaration.d.ts` file whether include your `tsconfig.json` search scope. for example: directories structur ``` |- src |-components |-typings |-declaration.d.ts |-tsconfig.json ``` tsconfig.json ``` { "include": [...

@jshado1 maybe you are right, but I does not change the loader and just expand the tscongif.json search scope by change the `include` pattern to `exclude` pattern, then it works...

I really hope the proposal can be supported. Interfaces are very useful to make our code reusable as much as possible, In some other type languages it indeed do work,...

这个问题的原因是 babel 在构建的时候,遇到了 import 和 module.exports 混用的情况,所以你可以按照如下步骤进行排查: 1. 查看自己的源码中没有 import 和 module.exports 混用的情况 2. 如果源码中没有找到,有可能是自己的构建的时候将 module.exports 的模块合进去导致的,这种不太好排查,可以严格限制下 webpack module.rules 中为 babel-loader 那条规则加下 include 字段,限制下构建的范围。

共同学习,我也只是翻译了官方的文档