eggjs / eggjs/egg

egg+ts使用sequelize关联查询试会出现问题

Open
#4,300 6 comments 0 reactions 0 assignees View on GitHub
Inactive
Dominant language
TypeScript
Stars
19k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

在进行多对多表关联查询时出现的问题
## 复现步骤,错误日志
### 复现
[最小复现仓库](https://gitee.com/youchen12138/eggDemo/tree/dev/)
### 数据库表
![image](https://user-images.githubusercontent.com/48384290/81792939-4d41fa00-953b-11ea-8efb-c3b63ac995ab.png)
![image](https://user-images.githubusercontent.com/48384290/81793020-634fba80-953b-11ea-9956-0368d369192e.png)
![Snipaste_2020-05-13_17-01-59](https://user-images.githubusercontent.com/48384290/81793118-7d899880-953b-11ea-91fa-9874d13502d6.png)
### 错误日志
```
nodejs.RangeError: Maximum call stack size exceeded
```
这个问题只出现在了egg使用ts的版本中,如果在egg中使用js的版本中,是没有该问题的,程序将会运行成功
[egg+js成功版本仓库](https://gitee.com/youchen12138/eggDemo/tree/js-success/)
### 相关环境信息
+ 操作系统:windows10
+ Node版本:12.16.1
+ egg版本:2.6.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.