Typescript 파일을 만들어 두고 npm run start를 통해서 App을 실행하게 되면 다음과 같은 에러가 발생한다.
TS1208:
'ㅁㅁㅁㅁ.tsx' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.
단지 빈 페이지로 있어서 오류가 난 것이므로
export {} 를 입력하면 에러 해결됩니다
별게 다 에러네

'Web > Error 해결' 카테고리의 다른 글
| Type 'void[]' is not assignable to type 'ReactNode'. - 에러 해결 (0) | 2023.09.21 |
|---|---|
| GitHub API rate limit (요청한도) 늘리기 (0) | 2023.08.31 |