[Book Buddy / Error Note] react에서 typescript 적용시 생기는 에러

'React' refers to a UMD global, but the current file is a module

 

초기설정중 react로 설치한 것을 typescript로 바꾸려고 했더니 app.tsx에서 위와 같은 에러가 발생하였다. 

 

react 를 import 해주면 해결된다. 

import React from 'react';

 

 

 

 


참고자료

https://donghyun-dev.tistory.com/136