SyntaxError: Cannot use import statement outside a module import를 사용 할 수 없다는 에러가 나왔다. .babelrc 파일을 생성한 후, 첨부한 사진 처럼 입력 해 주고 다시 실행해보니 해결 되었다.