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?