Error Handling

explicit-module-boundary-types

๋ช…๋ฐฑํ•˜๊ฒŒ ๋ฆฌํ„ด๊ฐ’์„ ์ •์˜ํ•˜๋ผ๋Š” ๋œป์ž…๋‹ˆ๋‹ค. ์˜ˆ์‹œ1) ๋ฆฌ์•กํŠธ์˜ ๊ฒฝ์šฐ ReactElement๋ฅผ ๋ฐ˜ํ™˜ํ•œ๋‹ค๊ณ  ์ปดํฌ๋„ŒํŠธ ํ•จ์ˆ˜์— ๋ช…์‹œํ•˜์˜€์Šต๋‹ˆ๋‹ค.

// 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๋ฅผ ์•Œ์ง€ ๋ชป

Last updated

Was this helpful?