inblog logo
|
Devgrr
    React.js

    CRA 프로젝트에서 babel-preset-react-app 경고 발생시

    sangwook yoo's avatar
    sangwook yoo
    Jul 14, 2023
    CRA 프로젝트에서 babel-preset-react-app 경고 발생시
    Contents
    ProblemCommandSolution
    ProblemCommandSolution

    Problem

    기존에 생성 해 놓았던 프로젝트를 npm run start 를 했더니 갑자기 경고 발생.
    one of your dependencies babel-preset-react-app
     
    babel-preset-react-app 이 @babel/plugin-proposal-private-property-in-object 패키지를 종송성 선언없이 가져와서 문제가 발생하는걸로 판단
     
    아마도 종속성 관계중에 deprecated 되었던지 되는 라이브러리가 있어서가 아닐까 의심(뇌피셜..)

    Command

    $ npm install --save-dev @babel/plugin-proposal-private-property-in-object --legacy-peer-deps OR $ yarn install -D @babel/plugin-proposal-private-property-in-object --legacy-peer-deps

    Solution

    one of your dependencies babel-preset-react-app
    npm start를 했는데 "one of your dependencies babel-preset-react-app~" 이라는 문구가 떴다. 아래 방법으로 해결함.참고: https://stackoverflow.com/questions/76435306/babel-
    one of your dependencies babel-preset-react-app
    https://velog.io/@pooh963/one-of-your-dependencies-babel-preset-react-app
    one of your dependencies babel-preset-react-app
    babel-preset-react-app, is importing the "@babel/plugin-proposal-private-property-in-object" package without declaring it in its dependencies
    my issue is that I've tried to create a new react project and after a lot of issues with vulnerabilities I managed to solve some of them, one of the main instructions was adding this line: "
    babel-preset-react-app, is importing the "@babel/plugin-proposal-private-property-in-object" package without declaring it in its dependencies
    https://stackoverflow.com/questions/76435306/babel-preset-react-app-is-importing-the-babel-plugin-proposal-private-propert
    babel-preset-react-app, is importing the "@babel/plugin-proposal-private-property-in-object" package without declaring it in its dependencies
    Share article
    Contents
    ProblemCommandSolution

    Devgrr

    RSS·Powered by Inblog