> For the complete documentation index, see [llms.txt](https://dev-sujeong.gitbook.io/typescript/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev-sujeong.gitbook.io/typescript/error-handling.md).

# Error Handling

## explicit-module-boundary-types

명백하게 리턴값을 정의하라는 뜻입니다.\
예시1) 리액트의 경우 ReactElement를 반환한다고 컴포넌트 함수에 명시하였습니다.

```javascript
// libraries
import type { AppProps } from 'next/app';
import { ReactElement } from 'react';

function MyApp({ Component, pageProps }: AppProps): ReactElement {
  return <Component {...pageProps} />;
}
export default MyApp;
```

## Unknown compiler options include & exclude

include, exclude를 compilerOptions에 넣었을 때 발생

## Specified 'include' paths were '\["*\*/*"]' and 'exclude' paths were '\[]'

tsconfig파일과 같은 경로에 .ts파일이 하나도 없어서 생긴 문제.

## ts2304: cannot find name \~

tsx 파일을 ts로 선언했을 때 jsx를 알지 못


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev-sujeong.gitbook.io/typescript/error-handling.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
