TypeScript에 빈페이지가 있으면 아래같은 에러가 뜬다
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. TS1208
빈페이지에
export {} 입력 하면 에러 해결
728x90
'Programming > ReactJs' 카테고리의 다른 글
[React] react, next.js 사용시 쿼리스트링을 감춰야하는 경우 (0) | 2023.09.06 |
---|---|
[react] typescript input 박스 의 텍스트가수정안되는경우 (0) | 2023.09.05 |
[react]번외 react router-pathname 대한 개념 이해 (0) | 2023.08.31 |
[Nextjs, Typescript] 프로젝트에 Prettier + ESlint 설정하기 (0) | 2023.08.29 |
[scoop] 윈도우용 scoop 설치 방법 (0) | 2023.08.18 |