One of your dependencies, babel-preset-react-app, is importing the
"@babel/plugin-proposal-private-property-in-object" package without
declaring it in its dependencies. This is currently working because
"@babel/plugin-proposal-private-property-in-object" is already in your
node_modules folder for unrelated reasons, but it may break at any time.
babel-preset-react-app is part of the create-react-app project, which
is not maintianed anymore. It is thus unlikely that this bug will
ever be fixed. Add "@babel/plugin-proposal-private-property-in-object" to
your devDependencies to work around this error. This will make this message
go away.
create-react-app을 설치하고 작업을 시작하려고 하는데
갑자기 터미널에 자꾸 경고창이 떠서 이유를 찾아보았더니
그런데 이러한 메세지는 프로젝트 종속성이나 설정에 문제가 있을 때 보여질 수 있는 메세지라고 한다.
그래서 찾아보니 npm과 create-react-app의 버전 호환성으로 인한 충돌이 있을 수 있다는 사실을 듣고
이를 해결하려 했다.
npm install -g npm@latest
npx create-react-app my-app
npx로 설치했기에 최신 버전을 유지할 수 있어서 create-react-app는 괜찮을 거라는 예상으로
npm을 최신 버전으로 설치함으로써 해결하게 되었다.
감사합니다 이 문제로 외국형님들 글 보면서 몇시간을 날려먹었는데 덕분에 해결됐습니다.