Jeonghyun109 / NAVER-FE-SSR

repository for KAIST-FE-SSR
1 stars 2 forks source link

react-infra branch: express import error #2

Closed itemgiver closed 2 years ago

itemgiver commented 2 years ago

src폴더 안의 index.js에 import express from "express" 코드를 추가하게 되면 아래 그림과 같은 오류가 발생합니다. 현재 express를 사용할 수 없어 Render Server에서 Post Request를 처리하기 힘든 상태합니다.

image

itemgiver commented 2 years ago

react-infra branch는 npx create-react-app my-app 를 이용하여 개발환경 세팅을 해보는 branch입니다. infra branch와 달리 먼저 React를 세팅하고 그 다음으로 express를 이용한 Web Server와 Render Server 간의 통신을 구현합니다.

itemgiver commented 2 years ago

node version의 문제인지 아니면 다른 이유인지 찾아보고 있습니다.

itemgiver commented 2 years ago

Javascript 통신 방법 axios, async, await 쪽을 알아보고 있습니다.

itemgiver commented 2 years ago

infra branch 에서 명준호님이 개발환경 세팅을 성공해주셨기 때문에 백업 방안이었던 react-branch는 삭제됩니다.