[babel] error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core...


😥 問題の状況

Error: Requires Babel "^7.0.0-0", but was loaded with "6.26.3". If you are sure you have a compatible version of @babel/core, it is likely that something in your build process is loading the wrong version. Inspect the stack trace of this error to look for the first entry that doesn't mention "@babel/core" or "babel-core" to see what is calling Babel.
対応するエラーを見て、バーベルバージョンに問題があると言いました...
npm uninstall babel-cli babel-core
npm install babel-cli babel-core@^7.0.0-bridge.0

😤 解決策


以下を入力しましたが、上記のエラーが発生し続けました.
npm uninstall babel-cli babel-core
上記のコマンドの代わりに、以下の手順で作成します.
npm uninstall @babel-cli @babel-core
正しく削除またはインストールされているかどうかを確認するには、package-lock.jsonファイルにctrl+Fと入力し、babel-coreを参照してください.

今出てきたのはいいですね.😵 一日中この間違いを解決しています!!
バージョンに注意してください.