typeerror (intermediate value) is not iterable
배열을 반환하지 않는 경우 아래와 같이 변경. bracket 제거
const [result] = await db.query(`...`);
↓
const result = await db.query(`...`);
참고 :
https://stackoverflow.com/questions/74626629/error-typeerror-intermediate-value-is-not-iterable-i
'Javascript&Typescript' 카테고리의 다른 글
| [Javascript] variable 과 !!variable - Double Exclamation Mark (1) | 2024.03.06 |
|---|---|
| [Javascript] throw Error 와 console.error 차이 (0) | 2024.02.28 |
| [Typescript] function (0) | 2024.02.13 |
| [Typescript] variable type (0) | 2024.02.07 |
| [Typescript] typescript 설치, 시작 (0) | 2024.02.05 |
댓글