typescript - Index.ts 使用 webpack 嵌套导出
问题描述
我有这个打字稿源层次结构:
shared/
columns/
column.ts
index.ts
filters/
column-filter.ts
index.ts
index.ts
test.ts
这里是文件的要点(抱歉,要点不支持文件夹):https ://gist.github.com/Jaroost/c79dc2384d49fcda35f12ef7e67a84c6
这里一切正常,即使循环导入(列导入列过滤器和列过滤器导入列)
但是当我在 shared/columns/ 中添加另一个文件 date-column.ts 并像这样更新 index.ts 时: https ://gist.github.com/Jaroost/5a24064e2d98d6856df108c7506d6be2
编译正常,但在导航器中出现此错误:
Uncaught TypeError: Super expression must either be null or a function
我做错了什么?
解决方案
推荐阅读
- flutter - 如何测试依赖于 Flutter 服务的服务
- spring-boot - 无法同时使用“https://start.spring.io”和“http://start.spring.io”创建 Spring Starter 项目
- angular - 在延迟加载的模块中提供服务
- python - 如何一起使用两个 async def
- certificate - Goddaddy的证书
- android - 过滤列表时RecyclerView高度变化
- search - 基于键值识别的 MERN Stack 项搜索
- python - CVXPY 约束公式
- java - 启动画面徽标图像上的动画
- openai - 没有名为 retro.import 的模块 Open AI